@SuppressWarnings("deprecation")
        public ResponseValidator execute() throws IOException {
            if (entity != null) {
                request.setEntity(entity);
            }
            try (CloseableHttpResponse response = delegate.execute(request)){
                return new ResponseValidator(response);
            }
        }
A simple http client for testing

@author Simon Thoresen Hult
@author bjorncs
container-core/src/test/java/com/yahoo/jdisc/http/server/jetty/SimpleHttpClient.java