@Test
void loadExistingPropertiesFromFile(TemporaryFolder temporaryFolder) throws IOException {

    File propertiesFile = new File(temporaryFolder.getRoot(), "static.properties");
    Properties staticProps = new OrderedProperties();
    staticProps.setProperty("my.name", "static value");
    staticProps.setProperty("another", "another static value");
    try (OutputStream outputStream = new StripFirstLineStream(new FileOutputStream(propertiesFile))) {
        staticProps.store(outputStream, null);
    }
    Properties properties = loadExistingProperties(propertiesFile);
    assertTrue(properties.containsKey("my.name"));
    assertTrue(properties.containsKey("another"));
}