### Question:
ConditionalPredicate implements Predicate<A> { @Override public boolean equals(Object obj) { if (obj == this) { return true; } if (!(obj instanceof ConditionalPredicate<?>)) { return false; } ConditionalPredicate<?> that = (ConditionalPredicate<?>) obj; return this.ifPred.equals(that.ifPred) && this.thenPred.equals(that.thenPred) && this.elsePred.equals(that.elsePred); } ConditionalPredicate(Predicate<? super A> ifPred, Predicate<? super A> thenPred,
            Predicate<? super A> elsePred); boolean test(A obj); @Override boolean equals(Object obj); @Override int hashCode(); @Override String toString();  }### Answer:
@Test public void testEquals() throws Exception { ConditionalPredicate<Object> p = new ConditionalPredicate<Object>( Identity.INSTANCE, Constant.TRUE, Constant.TRUE); assertEquals(p,p); assertObjectsAreEqual(p,new ConditionalPredicate<Object>( Identity.INSTANCE, Constant.TRUE, Constant.TRUE)); assertObjectsAreNotEqual(p,new ConditionalPredicate<Object>( Identity.INSTANCE, Constant.FALSE, Constant.TRUE)); assertObjectsAreNotEqual(p,new ConditionalPredicate<Object>( Constant.TRUE, Constant.TRUE, Constant.TRUE)); assertObjectsAreNotEqual(p,new ConditionalPredicate<Object>( Identity.INSTANCE, Constant.TRUE, Constant.FALSE)); assertTrue(!p.equals(null)); }