### Question:
NullaryFunctionFunction implements Function<A, T> { public T evaluate(A obj) { return function.evaluate(); } NullaryFunctionFunction(NullaryFunction<? extends T> function); T evaluate(A obj); @Override boolean equals(Object obj); @Override int hashCode(); @Override String toString(); static NullaryFunctionFunction<A, T> adapt(NullaryFunction<? extends T> function);  }### Answer:
@Test public void testEvaluate() throws Exception { Function<Object, Object> f = new NullaryFunctionFunction<Object, Object>(Constant.of("xyzzy")); assertEquals("xyzzy",f.evaluate(null)); assertEquals("xyzzy",f.evaluate("abc")); }