MyResource { @GET @Produces(MediaType.TEXT_PLAIN) public String getIt() { return "Hello, Heroku!"; }  @GET @Produces(MediaType.TEXT_PLAIN) String getIt();  }
@Test public void testGetIt() { final String responseMsg = target().path("myresource").request().get(String.class); assertEquals("Hello, Heroku!", responseMsg); }