@Test(expected = WrongReferenceAttributeValueException.class)
public void testUniqClash() throws Exception {

	System.out.println("testUniqClash");
	attributeToCheck.setValue(new ArrayList<>(Arrays.asList("my@example.com", "my2@google.com")));
	when(am.getPerunBeanIdsForUniqueAttributeValue(eq(session), argThat(new BeanAttributeMatcher("group_resource"))))
			.thenReturn(Sets.newHashSet(new Pair<>(1000,2000)));
	when(am.getPerunBeanIdsForUniqueAttributeValue(eq(session), argThat(new BeanAttributeMatcher("member"))))
			.thenReturn(Sets.newHashSet());
	classInstance.checkAttributeSemantics(session, group, resource, attributeToCheck);
}