private void assertEqualStatus(int statusCode,String uri) {
        ProcessingTestDriver.MockResponseHandler response = null;
        try {
            response = driver.sendRequest(uri).awaitResponse();
            assertEquals(statusCode, response.getStatus());
        }
        catch (InterruptedException e) {
            throw new RuntimeException(e);
        }
        finally {
            if (response != null) {
                response.readAll();
            }
        }
    }
Tests that the ResponseStatus takes precedence over errors
container-core/src/test/java/com/yahoo/processing/handler/ProcessingHandlerTestCase.java