@Test
public void tryToMap_foundOneMapping() {

    List<Identity> twoIdentities = new ArrayList<Identity>();
    twoIdentities.add(identityMockOne);
    when(
            baseSecurityMock.getVisibleIdentitiesByPowerSearch(anyString(), anyMap(), anyBoolean(), any(SecurityGroup[].class),
                    any(PermissionOnResourceable[].class), any(String[].class), any(Date.class), any(Date.class))).thenReturn(twoIdentities);
    Identity mappedIdentity = studentMappingByMartikelNumberTestObject.tryToMap(studentMock);
    assertNotNull("Must return an identity, when only one mapping exists", mappedIdentity);
}