### Question:
MessageSourceDateFormatter implements Formatter<Date> { @Override public String print(Date object, Locale locale) { final SimpleDateFormat format = getDateFormat(locale); return format.format(object); } MessageSourceDateFormatter(String messageKey); @Override String print(Date object, Locale locale); @Override Date parse(String text, Locale locale);  }### Answer:
@Test public void testPrint() throws Exception { final String testDate = "30.06.2015"; final String result = testeeWithValidKey.print(germanDateFormat.parse(testDate), Locale.GERMAN); assertThat(result).isEqualTo(testDate); }