### Question:
NullaryPredicateNullaryFunction implements NullaryFunction<Boolean> { public Boolean evaluate() { return Boolean.valueOf(predicate.test()); } NullaryPredicateNullaryFunction(NullaryPredicate predicate); Boolean evaluate(); @Override boolean equals(Object obj); @Override int hashCode(); @Override String toString(); static NullaryPredicateNullaryFunction adapt(NullaryPredicate predicate);  }### Answer:
@Test public void testTestWhenTrue() throws Exception { NullaryFunction<Boolean> f = new NullaryPredicateNullaryFunction(Constant.TRUE); assertEquals(Boolean.TRUE,f.evaluate()); }
@Test public void testTestWhenFalse() throws Exception { NullaryFunction<Boolean> f = new NullaryPredicateNullaryFunction(Constant.FALSE); assertEquals(Boolean.FALSE,f.evaluate()); }