### Question:
NullaryNot implements NullaryPredicate { public boolean test() { return !(predicate.test()); } NullaryNot(NullaryPredicate predicate); boolean test(); @Override boolean equals(Object obj); @Override int hashCode(); @Override String toString(); static NullaryPredicate not(NullaryPredicate that);  }### Answer:
@Test public void testTest() throws Exception { NullaryPredicate truePred = new NullaryNot(Constant.FALSE); assertTrue(truePred.test()); NullaryPredicate falsePred = new NullaryNot(Constant.TRUE); assertFalse(falsePred.test()); }