@Test
public void testDeletionOfReleasesExceptForSources()
throws Exception
{
fillInRepo();
((AbstractRepository)releases).setAccessManager(new OpenAccessManager());
ReleaseRemovalResult releaseRemovalResult =
releaseRemover.removeReleases(new ReleaseRemovalRequest(releases.getId(), 2, "3"));
// pom + jar + sha1 for both, but sources jar and associated sha1 should be left alone
assertThat(releaseRemovalResult.getDeletedFileCount(), is(4));
assertThat(releaseRemovalResult.isSuccessful(), is(true));