@Test
    public void shouldSetMaxAgeHeaderIfConfigSet() {
        commonSetup();

        config.setMaxAge(9001);

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

        Assert.assertTrue(!connector.isFailure());
        Assert.assertTrue(connector.isShortcircuit());
        Assert.assertEquals("9001", responseHeaders.get(CorsConnector.AC_MAX_AGE_KEY));
    }
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