### Question:
NullaryProcedureNullaryFunction implements NullaryFunction<T> { public static <T> NullaryProcedureNullaryFunction<T> adapt(NullaryProcedure procedure) { return null == procedure ? null : new NullaryProcedureNullaryFunction<T>(procedure); } 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 testAdaptNull() throws Exception { assertNull(NullaryProcedureNullaryFunction.adapt(null)); }
@Test public void testAdapt() throws Exception { assertNotNull(NullaryProcedureNullaryFunction.adapt(new NoOp())); }