public void assertResponse(Request request, int responseStatus, String responseMessage) throws IOException {
        Response response = container.handleRequest(request);
        // Compare both status and message at once for easier diagnosis
        assertEquals("status: " + responseStatus + "\nmessage: " + responseMessage,
                     "status: " + response.getStatus() + "\nmessage: " + response.getBodyAsString());
    }
Asserts a particular response and 200 as response status
node-repository/src/test/java/com/yahoo/vespa/hosted/provision/restapi/RestApiTester.java