### Question:
ConditionalNullaryPredicate implements NullaryPredicate { public boolean test() { return ifPred.test() ? thenPred.test() : elsePred.test(); } ConditionalNullaryPredicate(NullaryPredicate ifPred, NullaryPredicate thenPred, NullaryPredicate elsePred); boolean test(); @Override boolean equals(Object obj); @Override int hashCode(); @Override String toString();  }### Answer:
@Test public void testTest() throws Exception { { ConditionalNullaryPredicate p = new ConditionalNullaryPredicate( Constant.TRUE, Constant.TRUE, Constant.FALSE); assertTrue(p.test()); } { ConditionalNullaryPredicate p = new ConditionalNullaryPredicate( Constant.FALSE, Constant.TRUE, Constant.FALSE); assertTrue(!p.test()); } }