### Question:
NullaryProcedureNullaryFunction implements NullaryFunction<T> { public T evaluate() { procedure.run(); return null; } NullaryProcedureNullaryFunction(NullaryProcedure procedure); T evaluate(); @Override boolean equals(Object obj); @Override int hashCode(); @Override String toString(); static NullaryProcedureNullaryFunction<T> adapt(NullaryProcedure procedure);  }### Answer:
@Test public void testEvaluate() throws Exception { NullaryFunction<Object> f = new NullaryProcedureNullaryFunction<Object>(NoOp.INSTANCE); assertNull(f.evaluate()); }