public void testGetUserWithEmptyRole()
throws Exception
{
ConfigurationManager config = this.getConfigManager();
CUser user = config.readUser("test-user-with-empty-role");
Assert.assertEquals(user.getId(), "test-user-with-empty-role");
Assert.assertEquals(user.getEmail(), "empty-role@yourcompany.com");
Assert.assertEquals(user.getFirstName(), "Test");
Assert.assertEquals(user.getLastName(), "User With Empty Role");
Assert.assertEquals(user.getPassword(), "b2a0e378437817cebdf753d7dff3dd75483af9e0");
Assert.assertEquals(user.getStatus(), "active");
CUserRoleMapping mapping = config.readUserRoleMapping("test-user-with-empty-role", "default");
Assert.assertTrue(mapping.getRoles().contains("empty-role"));
Assert.assertTrue(mapping.getRoles().contains("role1"));