private HttpRequestHandler getHandler(HttpRequest r) {
        Socket socket = new Socket(r.getHost(), r.getPort());
        synchronized (this) {
            List<Handler> handlerList = handlers.get(socket);
            if (handlerList == null) {
                log.fine("No socket match");
                return null;
            }
            log.fine("Socket found");
            for (Handler h : handlers.get(socket)) {
                if (r.getPath().length() >= h.pathPrefix.length() && r.getPath().startsWith(h.pathPrefix)) {
                    return h.handler;
                }
            }
            log.fine("No path prefix match");
        }
        return null;
    }
Get an HTTP client that talks to this test transport layer.
clustercontroller-utils/src/test/java/com/yahoo/vespa/clustercontroller/utils/test/TestTransport.java