PropertiesCompatibleFileConfigRepository extends AbstractConfigRepository implements
    ConfigFileChangeListener { @Override public ConfigSourceType getSourceType() { return configFile.getSourceType(); } PropertiesCompatibleFileConfigRepository(PropertiesCompatibleConfigFile configFile); @Override Properties getConfig(); @Override void setUpstreamRepository(ConfigRepository upstreamConfigRepository); @Override ConfigSourceType getSourceType(); @Override void onChange(ConfigFileChangeEvent changeEvent);  }
@Test public void testGetSourceType() throws Exception { ConfigSourceType someType = ConfigSourceType.REMOTE; when(configFile.getSourceType()).thenReturn(someType); PropertiesCompatibleFileConfigRepository configFileRepository = new PropertiesCompatibleFileConfigRepository( configFile); assertSame(someType, configFileRepository.getSourceType()); }