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

	System.out.println("testCheckAttributeSemanticsHigherValueThanFacilityTime()");
	attributeToCheck.setValue(1000);
	when(session.getPerunBl().getAttributesManagerBl().getAttribute(any(PerunSession.class), any(Facility.class), anyString())).thenReturn(new Attribute() {
		{
			setValue(999);
		}
	});
	classInstance.checkAttributeSemantics(session, new User(), new Facility(), attributeToCheck);
	fail("Assigning lower accountExpirationTime than the time set at facility should throw exception.");
}