Configurator { public void setApplicationNameTo(String name) { properties.put(UPDATE_APPLICATION_NAME, name); } Configurator();  Configurator(Properties properties); void saveConfiguration(); void setApplicationNameTo(String name); void toggleFixedVersion(); void toggleLatestVersion(); void changeFixedVersionLocationTo(String location); void toggleHttpRepositoryForLatestVersion(); void toggleFileRepositoryForLatestVersion(); void setRepositoryLocationForLatestVersionTo(String location);  }
@Test public void writesApplicationName() throws Exception { configurator.setApplicationNameTo("MyApp"); assertThatItWrites("update.applicationName", "MyApp"); }