### Question:
ConfigurationProviderImpl implements ConfigurationProvider { @Override public synchronized DateFormatsConfig getDateFormats() { Preferences preferences = myPreferencesRegistry.getPreferences(MantleConstants.USER_DATE_FORMAT_CONFIG_FILE_TOPIC); return preferences.getJAXBObject(DateFormatsConfig.class, MantleConstants.USER_DATE_FORMAT_CONFIG_FILE_KEY, new DateFormatsConfig()); } ConfigurationProviderImpl(PreferencesRegistry prefsRegistry); @Override synchronized DateFormatsConfig getDateFormats(); @Override void saveFormat(DateFormat format); @Override List<String> getExcludeColumns(); @Override synchronized void saveFormats(Collection<DateFormat> formats);  }### Answer:
@Test public void testGetDateFormats() { EasyMockSupport support = new EasyMockSupport(); PreferencesRegistry prefsRegistry = createPreferencesRegistry(support); support.replayAll(); ConfigurationProviderImpl provider = new ConfigurationProviderImpl(prefsRegistry); DateFormatsConfig config = provider.getDateFormats(); assertEquals(ourConfig, config); support.verifyAll(); }