@Test
    public void testFilterNotMatch() {
        ServerWebExchange noHeaderExchange =
                MockServerWebExchange.from(MockServerHttpRequest
                        .post("http://localhost:8080/shenyu/test"));
        Mono<Void> noHeaderFilter = localDispatcherFilter.filter(noHeaderExchange, webFilterChain);
        StepVerifier.create(noHeaderFilter).expectSubscription().verifyError(ResponseStatusException.class);

        ServerWebExchange noMatchUrlExchange =
                MockServerWebExchange.from(MockServerHttpRequest
                        .post("http://localhost:8080/test")
                        .header("localKey", "123456"));
        Mono<Void> noMatchUrlFilter = localDispatcherFilter.filter(noMatchUrlExchange, webFilterChain);
        StepVerifier.create(noMatchUrlFilter).expectSubscription().verifyComplete();

        ServerWebExchange shaErrorExchange =
                MockServerWebExchange.from(MockServerHttpRequest
                        .post("http://localhost:8080/shenyu/test")
                        .header("localKey", "654321"));
        Mono<Void> shaErrorFilter = localDispatcherFilter.filter(shaErrorExchange, webFilterChain);
        StepVerifier.create(shaErrorFilter).expectSubscription().verifyError(ResponseStatusException.class);
    }
test case for LocalDispatcherFilter.
@see LocalDispatcherFilter
shenyu-web/src/test/java/org/apache/shenyu/web/filter/LocalDispatcherFilterTest.java