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