### Question:
DateConverter implements ValueConverter<Date> { public String valuePattern() { return formatter instanceof SimpleDateFormat ? ( (SimpleDateFormat) formatter ).toPattern() : ""; } DateConverter( DateFormat formatter ); static DateConverter datePattern( String pattern ); Date convert( String value ); Class<Date> valueType(); String valuePattern();  }### Answer:
@Test public void shouldGiveNoValuePatternIfFormatterNotASimpleDateFormat() { assertEquals( "", new DateConverter( notASimpleDateFormat ).valuePattern() ); }