@Test
    public void shouldAllowWhenOriginMatchesHost() {
        given(request.getType()).willReturn(HttpHelper.GET);

        setOrigin("panacalty");
        setHost("panacalty");

        allowOrigins.add("someotherorigin");

        connector = new CorsConnector(request, config, failureFactory);
        HeaderMap responseHeaders = connector.getResponseHeaders();

        Assert.assertTrue(!connector.isFailure());
        Assert.assertEquals("panacalty", responseHeaders.get(CorsConnector.AC_ALLOW_ORIGIN_KEY));
    }
Test simple aspects of CORS

@author Marc Savy {@literal <msavy@redhat.com>}
plugins/cors-policy/src/test/java/io/apiman/plugins/cors_policy/CorsConnectorSimpleTest.java