BooleanPredicate extends PredicateValue { @Override public BooleanPredicate clone() throws CloneNotSupportedException { return (BooleanPredicate)super.clone(); } BooleanPredicate(boolean value); boolean getValue(); BooleanPredicate setValue(boolean value); @Override BooleanPredicate clone(); @Override int hashCode(); @Override boolean equals(Object obj);  }
@Test public void requireThatCloneIsImplemented() throws CloneNotSupportedException { BooleanPredicate node1 = new BooleanPredicate(true); BooleanPredicate node2 = node1.clone(); assertEquals(node1, node2); assertNotSame(node1, node2); }