@Test
    void processing_handler_stores_trace_log_values_in_the_access_log_entry() {
        driver = new ProcessingTestDriver(logValueChain);
        Request request = HttpRequest.newServerRequest(driver.jDiscDriver(), URI.create("http://localhost/?chain=log-value"), HttpRequest.Method.GET);
        AccessLogEntry entry = new AccessLogEntry();
        request.context().put(CONTEXT_KEY_ACCESS_LOG_ENTRY, entry);
        RequestHandlerTestDriver.MockResponseHandler responseHandler = new RequestHandlerTestDriver.MockResponseHandler();
        ContentChannel requestContent = request.connect(responseHandler);
        requestContent.write(ByteBuffer.allocate(0), null);
        requestContent.close(null);
        request.release();
        responseHandler.readAll();
        assertEquals(List.of(LOG_VALUE), entry.getKeyValues().get(LOG_KEY));
    }
Tests processing handler scenarios end to end.

@author bratseth
@author gjoranv
@author Tony Vaagenes
container-core/src/test/java/com/yahoo/processing/handler/ProcessingHandlerTestCase.java