### Question:
Upper { @Path("rest/upper/{param}") @GET public String toUpper(@PathParam("param") String param) { return param.toUpperCase(); }  @Path("rest/upper/{param}") @GET String toUpper(@PathParam("param") String param);  }### Answer:
@Test public void testUpper() { Upper upper = new Upper(); assertEquals("FOO",upper.toUpper("foo")); }