@Test
public void resolveVirtualAttributeValueChange() throws Exception {

	setSchacHomeOrgs("muni.cz;cesnet.cz");
	AttributeDefinition countries = classInstance.getAttributeDefinition();
	when(sess.getPerunBl().getAttributesManagerBl().getAttributeDefinition(sess,"urn:perun:user:attribute-def:virt:institutionsCountries"))
		.thenReturn(countries);
	when(sess.getPerunBl().getUsersManagerBl().getUserById(sess, userExtSource.getUserId())).thenReturn(user);
	AuditEvent uesSet = new AttributeSetForUes(schacHomeOrg, userExtSource);
	List<AuditEvent> msgs = classInstance.resolveVirtualAttributeValueChange(sess, uesSet);
	assertTrue("audit should contain change of institutionsCountries",msgs.get(0).getMessage().contains("friendlyName=<institutionsCountries>"));
}