@Test
    public void shouldPassThroughAfterPreflight() {
        allowOrigins.add("*");
        config.getAllowMethods().add("POST");

        setOrigin("a");
        setHost("b");

        request.setType("POST");

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

        Assert.assertTrue(!connector.isFailure());
        Assert.assertFalse(connector.isShortcircuit());
    }
Test preflight aspects of CORS

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