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

		System.out.println("urn_perun_user_facility_attribute_def_def_basicDefaultGID.checkValueAttributeIsSetWithBadValueTest()");
		//setup
		basic.setValue(1);
		allowedResources.clear();
		allowedResourcesWithSameGid.clear();
		allowedResources.add(resource1);
		allowedResources.add(resource2);
		//mock
		when(session.getPerunBl().getAttributesManagerBl().getAttribute(any(PerunSessionImpl.class), any(Facility.class), eq(AttributesManager.NS_FACILITY_ATTR_DEF + ":unixGID-namespace"))).thenReturn(namespaceAttribute);
		when(session.getPerunBl().getUsersManagerBl().getAllowedResources(any(PerunSessionImpl.class), any(Facility.class), any(User.class))).thenReturn(allowedResources);
		when(session.getPerunBl().getResourcesManagerBl().getResourcesByAttribute(any(PerunSessionImpl.class), any(Attribute.class))).thenReturn(allowedResourcesWithSameGid);
		classInstance.checkAttributeSemantics(session, user, facility, basic);
}