public boolean isCredentialsAllowed() {
        return allowCredentials;
    }
@Test
    public void allowCredentials() {
        final CorsConfig cors = forAnyOrigin().allowCredentials().build();
        assertThat(cors.isCredentialsAllowed(), is(true));
    }