CorsConfig { public Set<String> origins() { return origins; } private  CorsConfig(final Builder builder); boolean isCorsSupportEnabled(); boolean isAnyOriginSupported(); String origin(); Set<String> origins(); boolean isNullOriginAllowed(); Set<String> exposedHeaders(); boolean isCredentialsAllowed(); long maxAge(); Set<HttpMethod> allowedRequestMethods(); Set<String> allowedRequestHeaders(); HttpHeaders preflightResponseHeaders(); boolean isShortCurcuit(); @Override String toString(); static Builder withAnyOrigin(); static Builder withOrigin(final String origin); static Builder withOrigins(final String... origins);  }
@Test public void origins() { final String[] origins = {"http: final CorsConfig cors = withOrigins(origins).build(); assertThat(cors.origins(), hasItems(origins)); assertThat(cors.isAnyOriginSupported(), is(false)); }