@Test
    public void shouldInsertHeadersInExposeList() {
        given(request.getType()).willReturn("GET");

        exposeHeaders.add("Vindolanda");
        exposeHeaders.add("Lindisfarne");

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

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

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

        Assert.assertTrue(!connector.isFailure());
        Assert.assertEquals("Vindolanda, Lindisfarne",
                responseHeaders.get(CorsConnector.AC_EXPOSE_HEADERS_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