public boolean acceptContains(String text) {
        String acceptHeader = LOCAL_REQUEST.get().getHeader("Accept");
        return acceptHeader != null && acceptHeader.contains(text);
    }
@Test
    void testAcceptContains() {
        background().scenario(
                "pathMatches('/hello') && acceptContains('json')",
                "def response = requestHeaders"
        );
        request.path("/hello").header("accept", "application/json").method("GET");
        handle();
        match(response.getBodyConverted(), "{ accept: ['application/json'] }");
    }