### Question:
FunctionProcedure implements Procedure<A> { @Override public boolean equals(Object obj) { if (obj == this) { return true; } if (!(obj instanceof FunctionProcedure<?>)) { return false; } FunctionProcedure<?> that = (FunctionProcedure<?>) obj; return this.function.equals(that.function); } FunctionProcedure(Function<? super A, ?> function); void run(A obj); @Override boolean equals(Object obj); @Override int hashCode(); @Override String toString(); static FunctionProcedure<A> adapt(Function<? super A, ?> function);  }### Answer:
@Test public void testEquals() throws Exception { Procedure<Object> p = new FunctionProcedure<Object>(Constant.of("K")); assertEquals(p,p); assertObjectsAreEqual(p,new FunctionProcedure<Object>(Constant.of("K"))); assertObjectsAreNotEqual(p,NoOp.INSTANCE); assertObjectsAreNotEqual(p,new FunctionProcedure<Object>(Constant.of("J"))); assertTrue(!p.equals(null)); }