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