@Test
public void testFilterOwnedLeafs_FindTypeLeafAsOwner() {

    List catalogEntries = new ArrayList();
    catalogEntries.add(commonTestCatalogEntryMock);
    SecurityGroup ownerGroupMock = commonTestCatalogEntryMock.getOwnerGroup();
    when(securityManagerMock.isIdentityInSecurityGroup(myIdentity, ownerGroupMock)).thenReturn(true);
    List filteredList = catalogService.filterOwnedLeafs(myIdentity, catalogEntries);
    assertNotNull("result could not be null", filteredList);
    assertEquals("Missing catalog-entry in filtered list, type_leaf and owner must be in list", 1, filteredList.size());
}