### Question:
UserGroupResource { @DELETE @Path("{id}") @RolesAllowed("/roleManagement/delete") public Response deleteGroup(@Auth UserInfo userInfo, @PathParam("id") String group) { log.info("Admin {} is trying to delete group {} from application", userInfo.getName(), group); userGroupService.removeGroup(group); return Response.ok().build(); } @Inject  UserGroupResource(UserGroupService userGroupService); @POST @RolesAllowed("/roleManagement/create") Response createGroup(@Auth UserInfo userInfo, @Valid GroupDTO dto); @PUT @RolesAllowed("/roleManagement") Response updateGroup(@Auth UserInfo userInfo, @Valid GroupDTO dto); @GET @RolesAllowed("/roleManagement") Response getGroups(@Auth UserInfo userInfo); @DELETE @Path("{id}") @RolesAllowed("/roleManagement/delete") Response deleteGroup(@Auth UserInfo userInfo, @PathParam("id") String group);  }### Answer:
@Test public void deleteGroup() { final Response response = resources.getJerseyTest() .target("/group/" + GROUP) .request() .header("Authorization", "Bearer " + TOKEN) .delete(); assertEquals(HttpStatus.SC_OK, response.getStatus()); verify(userGroupService).removeGroup(GROUP); verifyNoMoreInteractions(userGroupService); }