### Question:
CountriesResource { @GET @Path("/name/{name}") @Produces(MediaType.APPLICATION_JSON) public Country name(@PathParam("name") String name) { return countriesService.getByName(name).iterator().next(); }  @GET @Path("/name/{name}") @Produces(MediaType.APPLICATION_JSON) Country name(@PathParam("name") String name); JsonNode jsonName(JsonNode nameNode);  }### Answer:
@Test public void testJavaServiceCall() { Country country = resource.name("greece"); assertNotNull(country); assertEquals("Greece", country.getName()); assertEquals("Europe", country.getRegion()); assertEquals("Euro", country.getCurrencies().get(0).getName()); }