Configurator { public void toggleHttpRepositoryForLatestVersion() { toggleRepositoryType(RepositoryType.HTTP); } 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 canToggleHttpRepository() throws Exception { configurator.toggleHttpRepositoryForLatestVersion(); assertThatItWrites("update.LatestVersion.repository.type", "HTTP"); }