@Test
    void requireThatRequestIsTrackedInAccessLog() throws IOException, InterruptedException {
        BlockingQueueRequestLog requestLogMock = new BlockingQueueRequestLog();
        JettyTestDriver driver = JettyTestDriver.newConfiguredInstance(
                new EchoRequestHandler(),
                new ServerConfig.Builder(),
                new ConnectorConfig.Builder().accessLog(
                        new ConnectorConfig.AccessLog.Builder()
                                .content(List.of(
                                        new ConnectorConfig.AccessLog.Content.Builder()
                                                .pathPrefix("/search")
                                                .maxSize(BytesQuantity.ofKB(1).toBytes())
                                                .sampleRate(1),
                                        new ConnectorConfig.AccessLog.Content.Builder()
                                                .pathPrefix("/document/v1")
                                                .maxSize(BytesQuantity.ofMB(1).toBytes())
                                                .sampleRate(0.001)
                                ))),
                binder -> binder.bind(RequestLog.class).toInstance(requestLogMock));
        driver.client().newPost("/search/").setContent("abcdef").execute().expectStatusCode(is(OK));
        RequestLogEntry entry = requestLogMock.poll(Duration.ofSeconds(5));
        assertEquals(200, entry.statusCode().getAsInt());
        assertEquals(6, entry.requestSize().getAsLong());
        assertEquals("text/plain; charset=UTF-8", entry.content().get().type());
        assertEquals(6, entry.content().get().length());
        assertEquals("abcdef", new String(entry.content().get().body(), UTF_8));
        assertTrue(driver.close());
    }
@author Oyvind Bakksjo
@author Simon Thoresen Hult
@author bjorncs
container-core/src/test/java/com/yahoo/jdisc/http/server/jetty/HttpServerTest.java