FilesystemInstallationStarter implements InstallationStarter { @Override public Installation start(File targetFolder, ProgressReport report) { return FilesystemInstallation.create(targetFolder, report); }  @Override Installation start(File targetFolder, ProgressReport report);  }
@Test public void createsVersionFolderWhenInstallationStarts() throws Exception { File target = getTargetFolder(); starter.start(target, report); assertThat(target.exists(), is(true)); }
@Test public void addsContentToVersionFolder() throws Exception { File contentFile = folder.newFile("ContentFile"); File target = getTargetFolder(); Installation installation = starter.start(target, report); installation.addContent(new FileDataInVersion(contentFile)); File versionContentFile = new File(target, contentFile.getName()); assertThat(versionContentFile.exists(), is(true)); }