Mname { @GET public Response getUsage() { return Response .status(Status.BAD_REQUEST) .entity(USAGE) .build(); } @Inject  Mname(Storage storage); @GET Response getUsage(); @GET @Path("/{role}/{env}/{job}/{instance}/{forward:.+}") Response getWithForwardRequest(
      @PathParam("role") String role,
      @PathParam("env") String env,
      @PathParam("job") String job,
      @PathParam("instance") int instanceId,
      @PathParam("forward") String forward,
      @Context UriInfo uriInfo); @PUT @Path("/{role}/{env}/{job}/{instance}/{forward:.+}") Response putWithForwardRequest(
      @PathParam("role") String role,
      @PathParam("env") String env,
      @PathParam("job") String job,
      @PathParam("instance") int instanceId,
      @PathParam("forward") String forward,
      @Context UriInfo uriInfo); @POST @Path("/{role}/{env}/{job}/{instance}/{forward:.+}") Response postWithForwardRequest(
      @PathParam("role") String role,
      @PathParam("env") String env,
      @PathParam("job") String job,
      @PathParam("instance") int instanceId,
      @PathParam("forward") String forward,
      @Context UriInfo uriInfo); @DELETE @Path("/{role}/{env}/{job}/{instance}/{forward:.+}") Response deleteWithForwardRequest(
      @PathParam("role") String role,
      @PathParam("env") String env,
      @PathParam("job") String job,
      @PathParam("instance") int instanceId,
      @PathParam("forward") String forward,
      @Context UriInfo uriInfo); @GET @Path("/{role}/{env}/{job}/{instance}") Response get(
      @PathParam("role") String role,
      @PathParam("env") String env,
      @PathParam("job") String job,
      @PathParam("instance") int instanceId,
      @Context UriInfo uriInfo); @PUT @Path("/{role}/{env}/{job}/{instance}") Response put(
      @PathParam("role") String role,
      @PathParam("env") String env,
      @PathParam("job") String job,
      @PathParam("instance") int instanceId,
      @Context UriInfo uriInfo); @POST @Path("/{role}/{env}/{job}/{instance}") Response post(
      @PathParam("role") String role,
      @PathParam("env") String env,
      @PathParam("job") String job,
      @PathParam("instance") int instanceId,
      @Context UriInfo uriInfo); @DELETE @Path("/{role}/{env}/{job}/{instance}") Response delete(
      @PathParam("role") String role,
      @PathParam("env") String env,
      @PathParam("job") String job,
      @PathParam("instance") int instanceId,
      @Context UriInfo uriInfo);  }
@Test public void testGetUsage() { replayAndStart(); ClientResponse response = getRequestBuilder("/mname") .get(ClientResponse.class); assertEquals(Status.BAD_REQUEST.getStatusCode(), response.getStatus()); }