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

        res = request(client, HttpMethod.GET, "/cors17/index", "http://armeria.com", "GET");
        assertThat(res.headers().get(HttpHeaderNames.ACCESS_CONTROL_ALLOW_ORIGIN))
                .isEqualTo("http://armeria.com");
        res = request(client, HttpMethod.GET, "/cors17/index", "http://line1.com", "GET");
        assertThat(res.headers().get(HttpHeaderNames.ACCESS_CONTROL_ALLOW_ORIGIN))
                .isEqualTo("http://line1.com");
        res = request(client, HttpMethod.GET, "/cors17/index", "http://line2.org", "GET");
        assertThat(res.headers().get(HttpHeaderNames.ACCESS_CONTROL_ALLOW_ORIGIN))
                .isEqualTo("http://line2.org");
        res = request(client, HttpMethod.GET, "/cors17/index", "http://test.org", "GET");
        assertThat(res.headers().get(HttpHeaderNames.ACCESS_CONTROL_ALLOW_ORIGIN))
                .isEqualTo("http://test.org");

        res = request(client, HttpMethod.GET, "/cors17/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