### Question:
RepositoryPermissionsJaxrsService { @PUT @Consumes({"application/collection+xml", "application/collection+json"}) @Produces({MediaType.APPLICATION_XML, MediaType.APPLICATION_JSON}) public Response updatePermissionsRoot(RepositoryPermissionListWrapper data) throws ErrorDescriptorException { return updatePermissions(data, ""); }  @GET @Path("/{uri:.+}") @Produces({MediaType.APPLICATION_XML, MediaType.APPLICATION_JSON}) Response getPermissionsEntryPoint(@Context UriInfo uriInfo); @GET @Produces({MediaType.APPLICATION_XML, MediaType.APPLICATION_JSON}) Response getPermissionsEntryPointRoot(@Context UriInfo uriInfo); @POST @Consumes({"application/collection+xml", "application/collection+json"}) @Produces({MediaType.APPLICATION_XML, MediaType.APPLICATION_JSON}) Response createPermissions(RepositoryPermissionListWrapper data); @DELETE @Path("/{uri:.+}") Response deletePermissionsEntryPoint(@Context UriInfo uriInfo); @DELETE Response deletePermissionsEntryPointRoot(@Context UriInfo uriInfo); @PUT @Path("/{uri:.+}") @Consumes({"application/collection+xml", "application/collection+json"}) @Produces({MediaType.APPLICATION_XML, MediaType.APPLICATION_JSON}) Response updatePermissions(RepositoryPermissionListWrapper data,
            @PathParam("uri") String resourceUri); @PUT @Consumes({"application/collection+xml", "application/collection+json"}) @Produces({MediaType.APPLICATION_XML, MediaType.APPLICATION_JSON}) Response updatePermissionsRoot(RepositoryPermissionListWrapper data); @PUT @Path("/{uri:.+}") @Consumes({MediaType.APPLICATION_XML, MediaType.APPLICATION_JSON}) @Produces({MediaType.APPLICATION_XML, MediaType.APPLICATION_JSON}) Response updatePermission(RepositoryPermission permission,
            @Context UriInfo uriInfo); @PUT @Consumes({MediaType.APPLICATION_XML, MediaType.APPLICATION_JSON}) @Produces({MediaType.APPLICATION_XML, MediaType.APPLICATION_JSON}) Response updatePermissionRoot(RepositoryPermission permission,
            @Context UriInfo uriInfo); @POST @Consumes({MediaType.APPLICATION_XML, MediaType.APPLICATION_JSON}) @Produces({MediaType.APPLICATION_XML, MediaType.APPLICATION_JSON}) Response createPermission(RepositoryPermission permission);  }### Answer:
@Test(dependsOnGroups = {"updatePermissions"}) public void testUpdatePermissionsRoot() throws Exception { List<RepositoryPermission> data = new ArrayList<RepositoryPermission>(); data.add(clientPermission); RepositoryPermissionListWrapper input = new RepositoryPermissionListWrapper(data); InternalURI uri = new InternalURIDefinition(Folder.SEPARATOR, PermissionUriProtocol.RESOURCE); Response response = service.updatePermissionsRoot(input); assertNotNull(response); assertEquals(response.getStatus(), Response.Status.OK.getStatusCode()); RepositoryPermissionListWrapper entity = (RepositoryPermissionListWrapper)response.getEntity(); assertEquals(entity.getPermissions().size(), input.getPermissions().size()); assertEquals(entity.getPermissions().get(0), clientPermission); verify(permissionsService).putPermissions(eq(uri), any(List.class)); }