### Question:
IsNotEquivalent implements BinaryPredicate<T, T> { @Override public boolean equals(Object obj) { if (obj == this) { return true; } if (!(obj instanceof IsNotEquivalent<?>)) { return false; } IsNotEquivalent<?> that = (IsNotEquivalent<?>) obj; return this.comparator.equals(that.comparator); } @SuppressWarnings("unchecked")  IsNotEquivalent();  IsNotEquivalent(Comparator<? super T> comparator); boolean test(T left, T right); @Override boolean equals(Object obj); @Override int hashCode(); @Override String toString(); @SuppressWarnings("unchecked") static IsNotEquivalent<T> instance(); static Predicate<T> instance(T right); static final IsNotEquivalent<Comparable<?>> INSTANCE; }### Answer:
@Test public void testEquals() throws Exception { IsNotEquivalent<Comparable<?>> p = new IsNotEquivalent<Comparable<?>>(); assertEquals(p, p); assertObjectsAreEqual(p, new IsNotEquivalent<Integer>(ComparableComparator.<Integer> instance())); assertObjectsAreEqual(p, IsNotEquivalent.instance()); assertObjectsAreNotEqual(p, Constant.FALSE); assertFalse(p.equals(null)); }