Request request = new Request();
Response response = new Response(request);
request.getAttributes().put(UserToRolePlexusResource.USER_ID_KEY, "cdugas");
request.getAttributes().put(UserToRolePlexusResource.SOURCE_ID_KEY, REALM_KEY);
UserToRoleResourceRequest requestRequest = new UserToRoleResourceRequest();
UserToRoleResource cdugasBefore = new UserToRoleResource();
requestRequest.setData(cdugasBefore);
cdugasBefore.setUserId("cdugas");
cdugasBefore.setSource(REALM_KEY);
cdugasBefore.addRole("developer");
Assert.assertNull(resource.put(null, request, response, requestRequest));