FileInstaller implements InstallationStrategy<File> { @Override public void finalizeInstallation() { installation.finish(); } FileInstaller(ProgressReport report, File availableVersions, Installation installation); @Override List<File> findAllElementsToInstall(Version version); @Override void installElement(File file, Version version); @Override void handleException(); @Override void finalizeInstallation();  }
@Test public void forwardsFinalizationCallToInstallationInstance() throws Exception { fileInstaller.finalizeInstallation(); verify(installation).finish(); }