private static byte[] responseData(HttpResponse response) {
        ByteArrayOutputStream out = new ByteArrayOutputStream();
        uncheck(() -> response.render(out));
        return out.toByteArray();
    }
Test driver for {@link RestApi}

@author bjorncs
container-core/src/main/java/com/yahoo/restapi/RestApiTestDriver.java