MessageChecker { public boolean reject(Predicate<IncomeMessage> predicate) { return !predicate.test(message); } private  MessageChecker(IncomeMessage message); boolean accept(Predicate<IncomeMessage> predicate); boolean reject(Predicate<IncomeMessage> predicate); static MessageChecker check(IncomeMessage message);  }
@Test public void testReject() { assertFalse(check(incomeMessage).reject(somethingTrue)); verify(somethingTrue).test(incomeMessage); }