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

        setOrigin("http://example.com");
        setHost("http://wibble.com");

        allowOrigins.add("http://example.com");

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

        Assert.assertTrue(!connector.isFailure());
        Assert.assertEquals("http://example.com", 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