BooleanHolder extends AbstractValueHolder { @Override public boolean booleanValue() { return value != null ? value : false; } BooleanHolder(Boolean value); @Override Boolean getValue(); @Override boolean booleanValue(); @Override Boolean getBoolean();  }
@Test public void testBooleanValue() { assertFalse(h1.booleanValue()); assertTrue(h2.booleanValue()); assertFalse(h3.booleanValue()); }