### Question:
MyResource { @GET public String get() { System.out.println("GET"); return Database.getAll(); }  @GET String get(); @GET @Path("{name}") String get(@PathParam("name") String payload); @POST void post(String payload); @PUT void put(String payload); @DELETE @Path("{name}") void delete(@PathParam("name") String payload);  }### Answer:
@Test public void test3GetAll() { String r = target.request().get(String.class); assertEquals("[apple, banana]", r); }
@Test public void test4GetOne() { String r = target.path("apple").request().get(String.class); assertEquals("apple", r); }