@Test
public void testResourceableDeleted() {

    RepositoryEntry repositoryEntry = mock(RepositoryEntry.class);
    List catalogEntryReferencingList = new ArrayList();
    catalogEntryReferencingList.add(commonTestCatalogEntryMock);
    CatalogEntry catalogEntry2 = createCatalogEntryMockOfTypeLeaf(catalogEntryKey2);
    catalogEntryReferencingList.add(catalogEntry2);
    when(catalogDaoMock.getCatalogEntriesReferencing(repositoryEntry)).thenReturn(catalogEntryReferencingList);
    CatalogService spyedCatalogService = spy(catalogService);
    spyedCatalogService.resourceableDeleted(repositoryEntry);
    verify(spyedCatalogService).deleteCatalogEntry(commonTestCatalogEntryMock);
    verify(spyedCatalogService).deleteCatalogEntry(catalogEntry2);
}