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

	System.out.println("testSemanticsWithSameADNameAlreadySetElsewhere()");
	attributeToCheck.setValue("correctValue");
	reqAttribute.setValue("correctValue2");
	Group group2 = new Group();
	List<Group> groups = new ArrayList<>();
	groups.add(group2);
	groups.add(group);
	when(sess.getPerunBl().getSearcherBl().getGroupsByGroupResourceSetting(sess, attributeToCheck, reqAttribute)).thenReturn(groups);
	classInstance.checkAttributeSemantics(sess, group, resource, attributeToCheck);
}