@Test
    void testResponseDataStatus() throws InterruptedException {
        ProcessingTestDriver.MockResponseHandler responseHandler = null;
        try {
            List<Chain<Processor>> chains = new ArrayList<>();
            chains.add(new Chain<>("default", new ResponseStatusSetter(429)));
            driver = new ProcessingTestDriver(chains);
            responseHandler = driver.sendRequest("http://localhost/?chain=default").awaitResponse();
            Response response = responseHandler.getResponse();
            assertEquals(429, response.getStatus());
            assertEquals("{\"datalist\":[]}", responseHandler.read(), "ResponseHeaders are not rendered");
        }
        finally {
            if (responseHandler != null)
                responseHandler.readAll();
        }
    }
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