### Question:
DatePM extends TextPM implements IDatePM { public DateFormat getFormat() { return format; } DatePM(); static synchronized DateFormatProvider getDefaultDateFormatProvider(); static synchronized void setDefaultDateFormatProvider(DateFormatProvider provider); DateFormat getFormat(); void setFormat(DateFormat newFormat); Date getDate(); void setDate(Date date); void setDefaultDate(Date date); @Override Comparable<?> getComparable();  }### Answer:
@Test public void testGetFormatShouldReturnLocaleSpecificDefaultDateFormat_ForUS() { Locale.setDefault(Locale.US); DateFormat format = DateFormat.getDateInstance(); Date time = new Date(); String expected = format.format(time); DatePM pm = new DatePM(); DateFormat act = pm.getFormat(); assertThat(act.format(time), is(expected)); }
@Test public void testGetFormatShouldReturnLocaleSpecificDefaultDateFormat_DorGermany() { Locale.setDefault(Locale.GERMANY); DateFormat format = DateFormat.getDateInstance(); Date time = new Date(); String expected = format.format(time); DatePM pm = new DatePM(); DateFormat act = pm.getFormat(); assertThat(act.format(time), is(expected)); }