DateConverter implements Converter<Date> { @Override public String toString(Date value) { if (value == null) { return ""; } return format.format(value); } DateConverter(Context context, int resId);  DateConverter(DateFormat format, int resId); @Override String toString(Date value); @Override Date fromString(String string); static DateConverter getTimeConverter(Context context, int resId); static DateConverter getTimestampConverter(int resId); static DateConverter getDateConverter(Context context, int resId); static DateConverter getMediumDateConverter(Context context,
			int resId); static DateConverter getLongDateConverter(Context context, int resId);  }
@Test public void testFromProperty() throws Exception { DateConverter converter = new DateConverter(new SimpleDateFormat( "dd.MM.yyyy"), 0); assertEquals("01.01.2000", converter.toString(new Date(100, 0, 1))); assertEquals("", converter.toString(null)); }