Assert.assertEquals(encoded.getMethod(), "POST");
Assert.assertEquals(encoded.getURI().toString(), "http://localhost:7279");
Assert.assertTrue(encoded.getEntity().length() == query.length());
Assert.assertEquals(encoded.getHeader("Content-Type"), "application/x-www-form-urlencoded");
RestRequestBuilder rb = encoded.builder()
.setURI(new URI(encoded.getURI().toString() + "?uh=f"));
RestRequest modified = rb.build();
RestRequest decoded = QueryTunnelUtil.decode(modified);
Assert.assertEquals(decoded.getURI().toString(), "http://localhost:7279?uh=f&" + query);