### Question:
BinaryNot implements BinaryPredicate<L, R> { @Override public boolean equals(Object obj) { if (obj == this) { return true; } if (!(obj instanceof BinaryNot<?, ?>)) { return false; } BinaryNot<?, ?> that = (BinaryNot<?, ?>) obj; return this.predicate.equals(that.predicate); } BinaryNot(BinaryPredicate<? super L, ? super R> predicate); boolean test(L left, R right); @Override boolean equals(Object obj); @Override int hashCode(); @Override String toString(); static BinaryPredicate<L, R> not(BinaryPredicate<? super L, ? super R> that);  }### Answer:
@Test public void testEquals() throws Exception { BinaryNot<Object, Object> p = new BinaryNot<Object, Object>(Constant.TRUE); assertEquals(p,p); assertObjectsAreEqual(p,new BinaryNot<Object, Object>(Constant.TRUE)); assertObjectsAreEqual(p,BinaryNot.not(Constant.TRUE)); assertObjectsAreNotEqual(p,new BinaryNot<Object, Object>(Constant.FALSE)); assertObjectsAreNotEqual(p,Constant.TRUE); assertTrue(!p.equals(null)); }