String uriBase = "http://localhost:" + TestPortProvider.getPort() + "/test/path-param/";
String expected = "start" + toTest + "end";
String encoded = "start%" + Integer.toHexString(toTest).toUpperCase() + "end";
URI uri = URI.create(uriBase + encoded);
HttpURLConnection connection = (HttpURLConnection) uri.toURL().openConnection();
connection.setRequestMethod("GET");
connection.setRequestProperty("accept", "text/plain");
InputStream is = connection.getInputStream();
Reader r = new InputStreamReader(is, "UTF-8");
StringBuffer buf = new StringBuffer();
char[] chars = new char[1024];
int charsRead;
while ((charsRead = r.read(chars)) != -1)