### Question:
MyResource { @GET() @Path("/{id1}/{id2}") @Produces(MediaType.TEXT_PLAIN) public String get(@BeanParam MyPathParams pathParams, @BeanParam MyQueryParams queryParams) { return "/" + pathParams.getId1() + "/" + pathParams.getId2() + "?param1=" + queryParams.getParam1() + "&param2=" + queryParams.getParam2() + "&param3=" + queryParams.getParam3(); }  @GET() @Path("/{id1}/{id2}") @Produces(MediaType.TEXT_PLAIN) String get(@BeanParam MyPathParams pathParams, @BeanParam MyQueryParams queryParams);  }### Answer:
@Test public void testRequestWithAllParams() { WebTarget t = target.path("/123").path("/abc").queryParam("param1", "foo").queryParam("param2", "bar").queryParam("param3", "baz"); String r = t.request().get(String.class); assertEquals("/123/abc?param1=foo&param2=bar&param3=baz", r); }