@Test
public void issueSYNCOPE436() {
UserTO userTO = getUniqueSampleTO("syncope436@syncope.apache.org");
userTO.getMemberships().clear();
userTO.getResources().clear();
userTO.addResource(RESOURCE_NAME_LDAP);
userTO.addVirtualAttribute(attributeTO("virtualReadOnly", "readOnly"));
userTO = createUser(userTO);
//Finding no values because the virtual attribute is readonly
assertTrue(userTO.getVirtualAttributeMap().get("virtualReadOnly").getValues().isEmpty());
}