BooleanMatcher implements Transform<Boolean> { public Boolean read(String value) { return trueVal.equals(value); } BooleanMatcher(String trueVal, String falseVal); Boolean read(String value); String write(Boolean value);  }
@Test public void shouldReadTrue(){ assertTrue(toTest.read("myTrue")); }
@Test public void shouldReadFalse(){ assertFalse(toTest.read("myFalse")); }
@Test public void shouldReadAnyAsFalse(){ assertFalse(toTest.read("any")); }
@Test public void shouldReadNullAsFalse(){ assertFalse(toTest.read(null)); }