//GIVEN
InputStream inputStream = this.getClass().getResourceAsStream("/NUnit.2.5.9.10348.nupkg");
final Date date = new Date();
TempNupkgFile nupkgFile = new TempNupkgFile(inputStream, date);
//WHEN
NugetContext context = new NugetContext(new URI("http://localhost:8090/"));
EntryProperties properties = context.createPackageEntry(nupkgFile).getProperties();
//THEN
assertThat("Свойства RSS вложения созданы", properties, is(notNullValue()));
assertThat("Дата публикации пакета", properties.getPublished(), is(equalTo(date)));
assertThat("Хеш пакета", properties.getPackageHash(), is(equalTo(nupkgFile.getHash().toString())));
assertThat("Размер пакета", properties.getPackageSize(), is(equalTo(nupkgFile.getSize())));