*/
@Test
public void testPushAndGet() throws Exception {
//GIVEN
InputStream inputStream = this.getClass().getResourceAsStream("/NUnit.2.5.9.10348.nupkg");
TempNupkgFile tempNupkgFile = new TempNupkgFile(inputStream);
File packageFolder = new File(testFolder, tempNupkgFile.getId());
if (packageFolder.exists()) {
FileUtils.deleteDirectory(packageFolder);
}
MavenStylePackageSource mavenStylePackageSource = new MavenStylePackageSource(testFolder);
mavenStylePackageSource.setPushStrategy(new ModifyStrategy(true));
mavenStylePackageSource.pushPackage(tempNupkgFile);
//WHEN
MavenNupkg result = mavenStylePackageSource.getPackage(tempNupkgFile.getId(), tempNupkgFile.getVersion());
//THEN
assertEquals("Идентификатор пакета", tempNupkgFile.getId(), result.getId());
assertEquals("Версия пакета", tempNupkgFile.getVersion(), result.getVersion());
}