final RestfulRequest restfulReq = client.createRequest(HttpMethod.GET, "version");
final Header<Boolean> header = new Header<Boolean>("X-FAIL", Parser.forBoolean());
restfulReq.withHeader(header, true);
// when
final RestfulResponse<JsonRepresentation> jsonResp = restfulReq.execute();
// then
assertThat(jsonResp.getStatus(), is(HttpStatusCode.METHOD_FAILURE));
}
}