Co powinien zwracać Stub w tescie przy metodzie Predicate tzn :
Mam klasę :

public class MassPredicate {

    public Predicate<List<Product>> isNotEnoughInStorage() {
        return productList -> true;// to ze true to jest nieistotne
    }
}

chciałbym napisać test w Spock ale w jaki sposób napisać Stub to tego :

massPredicate.isNotEnoughInStorage() >> ????

w klasie mam taki warunek do przetestowania :

if (isNotEnoughInStorage().test(productsToBeMade)) {
            sendMessageMassAbsence();
        } 

private Predicate<List<Product>> isNotEnoughInStorage() {
        return massPredicate.isNotEnoughInStorage();
    }