request.header("custom-header", "42");
request.formParameter(BOOLEAN_VALUE_FIELD, "true");
request.formParameter(NAME_FIELD, "This is My Name");
request.formParameter(DOUBLE_VALUE_FIELD, "123.45");
request.formParameter(LONG_VALUE_FIELD, "566780");
request.formParameter(INTEGER_VALUE_FIELD, "3");
request.formParameter(SHORT_VALUE_FIELD, "12345");
ClientResponse<InputStream> response = request.post(InputStream.class);
Assert.assertEquals(HttpServletResponse.SC_OK, response.getStatus());
String contentType = response.getResponseHeaders().getFirst("content-type");
Assert.assertEquals("application/x-www-form-urlencoded", contentType);