FallbackVersionDiscovery implements VersionDiscovery { @Override public void reportAllProgressTo(ProgressReport report) { wrapped.reportAllProgressTo(report); } FallbackVersionDiscovery(VersionDiscovery wrapped, Version fallback); @Override Version getLatestVersion(); @Override void reportAllProgressTo(ProgressReport report);  }
@Test public void forwardsReportingToWrapped() throws Exception { ProgressReport report = mock(ProgressReport.class); discovery.reportAllProgressTo(report); verify(wrapped).reportAllProgressTo(report); }