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