FixedVersionStore implements VersionStore { @Override public void reportAllProgressTo(ProgressReport report) { wrapped.reportAllProgressTo(report); } 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 forwardsReportingToWrappedStore() throws Exception { ProgressReport report = mock(ProgressReport.class); store.reportAllProgressTo(report); verify(wrapped).reportAllProgressTo(report); }