public void verifyComplete() {
        if (path == null) throw new IllegalStateException("HTTP requests must have a path set. Use '/' for top level");
        if (httpOperation == null) throw new IllegalStateException("HTTP requests must have an HTTP method defined");
    }
@Test
    void testVerifyComplete() {
        // To be a complete request, an HTTP request must include:
        //  - A path
        //  - The HTTP operation type
        try {
            new HttpRequest().setPath("/foo").verifyComplete();
            fail();
        } catch (IllegalStateException e) {
        }
        try {
            new HttpRequest().setHttpOperation(HttpRequest.HttpOp.GET).verifyComplete();
            fail();
        } catch (IllegalStateException e) {
        }
        new HttpRequest().setHttpOperation(HttpRequest.HttpOp.GET).setPath("/bar").verifyComplete();
    }