assertEquals(membership.getAttr(schema.getName()).getValues().size(), 1);
}
@Test
public void derAttrFromSpecialAttrs() {
UDerSchema sderived = new UDerSchema();
sderived.setName("sderived");
sderived.setExpression("username + ' - ' + creationDate + '[' + failedLogins + ']'");
sderived = derSchemaDAO.save(sderived);
derSchemaDAO.flush();
UDerSchema actual = derSchemaDAO.find("sderived", UDerSchema.class);
assertNotNull("expected save to work", actual);
assertEquals(sderived, actual);
SyncopeUser owner = userDAO.find(3L);
assertNotNull("did not get expected user", owner);