@Test
public void booleanSupplierPredicateReverse() throws Exception {

    BooleanSupplier s = new BooleanSupplier() {
        @Override
        public boolean getAsBoolean() throws Exception {
            return false;
        }
    };
    assertTrue(Functions.predicateReverseFor(s).test(1));
    s = new BooleanSupplier() {
        @Override
        public boolean getAsBoolean() throws Exception {
            return true;
        }
    };
    assertFalse(Functions.predicateReverseFor(s).test(1));
}