@Test
    void shouldThrowExceptionIfInvalidPathSpecified() {
        assertThatThrownBy(() -> HttpJsonTranscodingPathParser.parse("/v1/{var=**/x}"))
                .isInstanceOf(IllegalArgumentException.class);
        assertThatThrownBy(() -> HttpJsonTranscodingPathParser.parse("/v1/{var=**}/"))
                .isInstanceOf(IllegalArgumentException.class);
        assertThatThrownBy(() -> HttpJsonTranscodingPathParser.parse("/v1/{var=**}/{var2=*}"))
                .isInstanceOf(IllegalArgumentException.class);
        assertThatThrownBy(() -> HttpJsonTranscodingPathParser.parse("/v1/{var"))
                .isInstanceOf(IllegalArgumentException.class);
        assertThatThrownBy(() -> HttpJsonTranscodingPathParser.parse("/v1/{var="))
                .isInstanceOf(IllegalArgumentException.class);
        assertThatThrownBy(() -> HttpJsonTranscodingPathParser.parse("/v1/{var=}"))
                .isInstanceOf(IllegalArgumentException.class);
        assertThatThrownBy(() -> HttpJsonTranscodingPathParser.parse("/v1/***"))
                .isInstanceOf(IllegalArgumentException.class);
        assertThatThrownBy(() -> HttpJsonTranscodingPathParser.parse("/v1/{}"))
                .isInstanceOf(IllegalArgumentException.class);
        assertThatThrownBy(() -> HttpJsonTranscodingPathParser.parse(""))
                .isInstanceOf(IllegalArgumentException.class);
        assertThatThrownBy(() -> HttpJsonTranscodingPathParser.parse("/v1/{var}:verb:verb"))
                .isInstanceOf(IllegalArgumentException.class);
        assertThatThrownBy(() -> HttpJsonTranscodingPathParser.parse("/v1/var:verb:verb"))
                .isInstanceOf(IllegalArgumentException.class);
        assertThatThrownBy(() -> HttpJsonTranscodingPathParser.parse("/v1/{deep=**}/var:verb"))
                .isInstanceOf(IllegalArgumentException.class);
        assertThatThrownBy(() -> HttpJsonTranscodingPathParser.parse(null))
                .isInstanceOf(NullPointerException.class);
    }
",
                              PathMappingType.GLOB,
                              ImmutableMap.of("0", "1/2/3"),
                              ImmutableMap.of("name", "1/2/3")),
                    arguments("/v1/messages/{name=*}/{name2=**}",
                              "/v1/messages/
grpc/src/test/java/com/linecorp/armeria/server/grpc/HttpJsonTranscodingPathParserTest.java