@Test
    public void testAnnotatedServiceOriginRegex() {
        final WebClient client = client();
        AggregatedHttpResponse res;

        res = request(client, HttpMethod.GET, "/cors16/index", "http://example.com", "GET");
        assertThat(res.headers().get(HttpHeaderNames.ACCESS_CONTROL_ALLOW_ORIGIN))
                .isEqualTo("http://example.com");
        res = request(client, HttpMethod.GET, "/cors16/index", "http://example1.com", "GET");
        assertThat(res.headers().get(HttpHeaderNames.ACCESS_CONTROL_ALLOW_ORIGIN))
                .isEqualTo("http://example1.com");
        res = request(client, HttpMethod.GET, "/cors16/index", "http://example.org", "GET");
        assertThat(res.headers().get(HttpHeaderNames.ACCESS_CONTROL_ALLOW_ORIGIN))
                .isEqualTo("http://example.org");

        res = request(client, HttpMethod.GET, "/cors16/index", "http://invalid.com", "GET");
        assertThat(res.headers().get(HttpHeaderNames.ACCESS_CONTROL_ALLOW_ORIGIN)).isNull();
    }
If no CORS was configured and there's no binding for OPTIONS method, the server's fallback service will
be matched and the service with partial binding must not be invoked.
core/src/test/java/com/linecorp/armeria/server/cors/HttpServerCorsTest.java