public void assertPartialResponse(Request request, String responseSnippet, boolean match) throws IOException {
        String response = container.handleRequest(request).getBodyAsString();
        assertEquals(String.format("Expected response to " + (match ? " " : "not ") + "contain: %s\nResponse: %s",
                                   responseSnippet, response), match, response.contains(responseSnippet));
    }
Asserts a particular response and 200 as response status
node-repository/src/test/java/com/yahoo/vespa/hosted/provision/restapi/RestApiTester.java