@Test
public void testSave() {

    YAMLConfiguration configuration = Environment.getInstance().getConfiguration();
    configuration.setProperty("ui.features.foo", false);
    configuration.setProperty("ui.features.bar", true);
    configuration.setProperty("ui.endpoints.quaz", "");
    Environment.getInstance().save();
    Environment.getInstance().setConfiguration(null);
    configuration = Environment.getInstance().getConfiguration();
    assertFalse(configuration.getBoolean("ui.features.foo"));
    assertTrue(configuration.getBoolean("ui.features.bar"));
    assertEquals(configuration.getString("ui.endpoints.quaz"), "");
}