FixedVersionStore implements VersionStore { @Override public Version getLatestVersion() { return wrapped.getLatestVersion(); } FixedVersionStore(File rootFolder, VersionStore wrapped); @Override Installation beginInstallation(Version version); @Override void removeOldVersions(); @Override Version getLatestVersion(); @Override File getFolderForVersionToRun(); @Override void reportAllProgressTo(ProgressReport report);  }
@Test public void statesLatestVersionFromWrappedStore() throws Exception { when(wrapped.getLatestVersion()).thenReturn(version); assertThat(store.getLatestVersion(), is(version)); }