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

	System.out.println("testGroupWithSameGID()");
	attributeToCheck.setValue(5);
	Group group = new Group();
	when(sess.getPerunBl().getGroupsManagerBl().getGroupsByAttribute(sess, attributeToCheck)).thenReturn(Collections.singletonList(group));
	when(sess.getPerunBl().getAttributesManagerBl().getAllAttributesStartWithNameWithoutNullValue(sess, resource, AttributesManager.NS_RESOURCE_ATTR_DEF + ":unixGroupName-namespace:")).thenReturn(Collections.singletonList(attributeToCheck));
	when(sess.getPerunBl().getModulesUtilsBl().haveTheSameAttributeWithTheSameNamespace(sess, group, attributeToCheck)).thenReturn(2);
	classInstance.checkAttributeSemantics(sess, resource, attributeToCheck);
}