### Question:
FunctionPredicate implements Predicate<A> { public static <A> FunctionPredicate<A> adapt(Function<? super A, Boolean> function) { return null == function ? null : new FunctionPredicate<A>(function); } FunctionPredicate(Function<? super A, Boolean> function); boolean test(A obj); @Override boolean equals(Object obj); @Override int hashCode(); @Override String toString(); static FunctionPredicate<A> adapt(Function<? super A, Boolean> function);  }### Answer:
@Test public void testAdaptNull() throws Exception { assertNull(FunctionPredicate.adapt(null)); }
@Test public void testAdapt() throws Exception { assertNotNull(FunctionPredicate.adapt(Constant.TRUE)); }