HttpRepository extends AbstractRepository<String> { @Override protected InstallationStrategy<String> createInstallationStrategy(Installation installation) { return new HttpInstaller(getReport(), baseUrl, installation); } HttpRepository(String url);   }
@Test public void createsHttpInstaller() throws Exception { Installation installation = mock(Installation.class); InstallationStrategy<String> strategy = repository.createInstallationStrategy(installation); Version mock = mock(Version.class); strategy.installElement("X", mock); verify(installation).addContent(isA(UrlDataInVersion.class)); }