### Question:
LiveConfiguration { static void init(ServletConfig servletConfig) { if (timestamp != null) return; InputStream configurationFile = getConfigurationFile(servletConfig); initialize(Optional.ofNullable(configurationFile) .map(ExporterConfig::loadConfig) .orElse(ExporterConfig.createEmptyConfig())); }    }### Answer:
@Test public void whenConfigurationSpecifiesSynchronization_installHttpBasedUpdater() throws Exception { init(CONFIGURATION_WITH_SYNC); assertThat(getConfigurationUpdater(), instanceOf(ConfigurationUpdaterImpl.class)); }
@Test public void whenConfigurationSpecifiesSynchronization_configureUpdater() throws Exception { init(CONFIGURATION_WITH_SYNC); ConfigurationUpdaterImpl configurationUpdater = (ConfigurationUpdaterImpl) getConfigurationUpdater(); assertThat(configurationUpdater.getRepeaterUrl(), equalTo(SYNC_URL)); assertThat(configurationUpdater.getRefreshInterval(), equalTo(REFRESH_INTERVAL)); }