try {
Subject overlord = LookupUtil.getSubjectManager().getOverlord();
ResourceManagerLocal resourceManager = LookupUtil.getResourceManager();
List<Integer> deletedIds = resourceManager.uninventoryResource(overlord, newResource.getId());
resourceManager.uninventoryResourceAsyncWork(overlord, newResource.getId());
assertEquals("didn't delete resource: " + deletedIds, 1, deletedIds.size());
assertEquals("what was deleted? : " + deletedIds, newResource.getId(), deletedIds.get(0).intValue());
// I don't have the resource anymore so I can't use makeSureDataIsPurged to test