@Test
public void testIsEntryWithinCategory_notFound() {

    List entriesList = new ArrayList();
    entriesList.add(createParentCatalogEntryWithChildren());
    CatalogEntry toBeCheckedEntry = mock(CatalogEntry.class);
    when(toBeCheckedEntry.getKey()).thenReturn(new Long(catalogEntryKey3));
    assertFalse(catalogService.isEntryWithinCategory(toBeCheckedEntry, entriesList));
}