PropertiesFileConfiguration implements IConfiguration { @Override public String getId() { return id; } PropertiesFileConfiguration( String id, Properties properties );  PropertiesFileConfiguration( String id, File propFile ); @Override String getId(); @Override Properties getProperties(); @Override void update( Properties newProperties );  }
@Test public void testConstructor_StringFile() throws Exception { File file = mock( File.class ); when( file.exists() ).thenReturn( true ); PropertiesFileConfiguration config = new PropertiesFileConfiguration( "id", file ); assertEquals( "id", config.getId() ); }