assertThat(new File(repoLocation, ".nexus/trash"), FileMatchers.isDirectory());
M2Repository outOfServiceRepo =
(M2Repository) this.lookup(RepositoryRegistry.class).getRepository("out-of-service-repo");
outOfServiceRepo.setLocalStatus(LocalStatus.OUT_OF_SERVICE);
outOfServiceRepo.commitChanges();
Wastebasket wastebasket = this.lookup(Wastebasket.class);
wastebasket.purgeAll(1L);
// NEXUS-4642 check if directories were deleted