### Question:
MyResource { @GET @Produces(MediaType.TEXT_PLAIN) public String getIt() { return "Got it!"; }  @GET @Produces(MediaType.TEXT_PLAIN) String getIt(); @GET @Path("/empty") Response empty();  }### Answer:
@Test public void testGetIt() { String responseMsg = target.path("myresource").request().get(String.class); assertEquals("Got it!", responseMsg); }