DateHolder extends AbstractValueHolder { @Override public String getString() { return getString(DateType.getDefaultOutputPattern()); } DateHolder(Date date); @Override Date getValue(); @Override Date getDate(); @Override String getString(); String getString(String pattern);  }
@Test() public void testGetString() { DateType.setDefaultOutputPattern("dd-MM-yyyy"); assertEquals("15-03-2012", h1.getString()); assertEquals("15-03-2012", h2.getString()); assertNull(h3.getString()); }