UserMessageUtil userUtil = new UserMessageUtil(this.getJsonXStream(), MediaType.APPLICATION_JSON);
List<PlexusUserResource> users = userUtil.searchPlexusUsers("default", "admin");
Assert.assertEquals(1, users.size());
PlexusUserResource user = users.get(0);
Assert.assertEquals(user.getUserId(), "admin");
Assert.assertEquals(user.getEmail(), "changeme@yourcompany.com");
Assert.assertEquals(user.getFirstName(), "Administrator");
Assert.assertEquals(user.getSource(), "default");
List<PlexusRoleResource> roles = user.getRoles();
Assert.assertEquals(1, roles.size());
PlexusRoleResource role = roles.get(0);
Assert.assertEquals(role.getName(), "Nexus Administrator Role");
Assert.assertEquals(role.getRoleId(), "nx-admin");