//USERS
User storedUserInstance = identityManager.getUser("admin");
storedUserInstance.setAttribute(new Attribute<String[]>("multi-valued", new String[] { "1", "2", "3" }));
identityManager.update(storedUserInstance);
User updatedUserInstance = identityManager.getUser(storedUserInstance.getId());
Attribute<String[]> multiValuedAttribute = updatedUserInstance.getAttribute("multi-valued");
assertNotNull(multiValuedAttribute);
assertEquals("1", multiValuedAttribute.getValue()[0]);
assertEquals("2", multiValuedAttribute.getValue()[1]);
assertEquals("3", multiValuedAttribute.getValue()[2]);
//ROLES
Role storedRoleInstance = identityManager.getRole("Administrator");
storedRoleInstance.setAttribute(new Attribute<String[]>("multi-valued", new String[] {"1", "2", "3"}));
identityManager.update(storedRoleInstance);
//GROUPS
Group storedGroupInstance = identityManager.getGroup("Test Group");
storedGroupInstance.setAttribute(new Attribute<String[]>("multi-valued", new String[] {"1", "2", "3"}));
identityManager.update(storedGroupInstance);