DateHolder extends AbstractValueHolder { @Override public Date getDate() { return date; } DateHolder(Date date); @Override Date getValue(); @Override Date getDate(); @Override String getString(); String getString(String pattern);  }
@Test public void testGetDate() { assertEquals(d1, h1.getDate()); assertEquals(d2, h2.getDate()); assertEquals(null, h3.getDate()); }