### Question:
DateFormatter extends BaseDateTimeFormatter { @Override public String getSystemFormat() { String systemFormat = super.getSystemFormat(); int timeIndex = systemFormat.indexOf('H'); systemFormat = systemFormat.substring(0, timeIndex - 1); systemFormat = systemFormat.trim(); return systemFormat; } DateFormatter(PreferencesRegistry preferencesRegistry); @Override String getSystemFormat(); @Override void saveNewFormat(String format);  }### Answer:
@Test public void testGetSystemFormat() { for (int i = 0; i < 4; i++) { EasyMockSupport support = new EasyMockSupport(); PreferencesRegistry registry = TestDateTimeUtils.createPreferencesRegistry(support, i); support.replayAll(); DateFormatter formatter = new DateFormatter(registry); assertEquals(DateTimeFormats.DATE_FORMAT, formatter.getSystemFormat()); support.verifyAll(); } }