BooleanValues implements Condition, Cloneable { @Override public String toString() { return string; } private  BooleanValues(boolean b); @Override boolean isTrue(Object element); @SuppressWarnings({"CloneDoesntCallSuperClone"}) @Override BooleanValues clone(); @Override String toString(); static BooleanValues getInstance(boolean value); static final BooleanValues TRUE; static final BooleanValues FALSE; }
@Test public void testString() throws CloneNotSupportedException, IOException, ClassNotFoundException { assertEquals("false", BooleanValues.FALSE.toString()); assertEquals("true", BooleanValues.TRUE.toString()); }