### Question:
TimeFormatter extends BaseDateTimeFormatter { @Override public String getSystemFormat() { String systemFormat = super.getSystemFormat(); int timeIndex = systemFormat.indexOf('H'); systemFormat = systemFormat.substring(timeIndex, systemFormat.length()); return systemFormat; } TimeFormatter(PreferencesRegistry preferencesRegistry); @Override String getSystemFormat(); @Override void saveNewFormat(String format);  }### Answer:
@Test public void testGetSystemFormat() { StringBuilder formatStringBuilder = new StringBuilder("HH:mm:ss"); for (int i = 0; i < 4; i++) { EasyMockSupport support = new EasyMockSupport(); PreferencesRegistry registry = TestDateTimeUtils.createPreferencesRegistry(support, i); support.replayAll(); TimeFormatter formatter = new TimeFormatter(registry); assertEquals(formatStringBuilder.toString(), formatter.getSystemFormat()); support.verifyAll(); if (i == 0) { formatStringBuilder.append('.'); } formatStringBuilder.append('S'); } }