HttpInstaller implements InstallationStrategy<String> { @Override public void finalizeInstallation() { installation.finish(); } HttpInstaller(ProgressReport report, URL baseUrl, Installation installation); @Override List<String> findAllElementsToInstall(Version version); @Override void installElement(String file, Version version); @Override void handleException(); @Override void finalizeInstallation();  }
@Test public void forwardsFinalizationCallToInstallationInstance() throws Exception { httpInstaller.finalizeInstallation(); verify(installation).finish(); }