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

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

        allowOrigins.add("allowedOrigin");

        connector = new CorsConnector(request, config, failureFactory);

        Assert.assertTrue(connector.isFailure());
    }
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