### Question:
HelloResource { @GET @Produces(MediaType.TEXT_HTML) public TemplateInstance get(@QueryParam("name") String name) { return hello.data("name", name); }  @GET @Produces(MediaType.TEXT_HTML) TemplateInstance get(@QueryParam("name") String name);  }### Answer:
@Test public void testEndpoint() { given() .when().get("/qute/hello") .then() .statusCode(200) .body(containsString("<p>Hello world!</p>")); given() .when().get("/qute/hello?name=Lucie") .then() .statusCode(200) .body(containsString("<p>Hello Lucie!</p>")); }
@Test public void testEndpoint() { given() .when().get("/hello") .then() .statusCode(200) .body(containsString("<p>Hello world!</p>")); given() .when().get("/hello?name=Lucie") .then() .statusCode(200) .body(containsString("<p>Hello Lucie!</p>")); }