public boolean typeContains(String text) {
        String contentType = LOCAL_REQUEST.get().getContentType();
        return contentType != null && contentType.contains(text);
    }
@Test
    void testTypeContains() {
        background().scenario(
                "pathMatches('/hello') && typeContains('json')",
                "def response = { success: true }"
        );
        request.path("/hello").contentType("application/json").method("GET");
        handle();
        match(response.getBodyConverted(), "{ success: true }");
    }