Configurator { public void toggleLatestVersion() { toggleStrategy(LatestVersion); } 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 canSwitchToLatestVersion() throws Exception { configurator.toggleLatestVersion(); assertThatItWrites("update.strategy", "LatestVersion"); }