NumericVersion version = new NumericVersion(4, 2, 1);
Installation installation = mock(Installation.class);
when(store.beginInstallation(version)).thenReturn(installation);
new FilesystemRepository(folder.getRoot()).transferVersionTo(version, store);
Thread.sleep(10);
verify(installation).addContent(new FileDataInVersion(content));
}