### Question:
NullaryPredicateNullaryFunction implements NullaryFunction<Boolean> { public static NullaryPredicateNullaryFunction adapt(NullaryPredicate predicate) { return null == predicate ? null : new NullaryPredicateNullaryFunction(predicate); } 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 testAdaptNull() throws Exception { assertNull(NullaryPredicateNullaryFunction.adapt(null)); }
@Test public void testAdapt() throws Exception { assertNotNull(NullaryPredicateNullaryFunction.adapt(Constant.TRUE)); }