### Question:
CrossOriginConfig { public boolean isEnabled() { return enabled; } private  CrossOriginConfig(Builder builder); static Builder builder(); static Builder builder(Config config); static Builder builder(CrossOriginConfig original); static CrossOriginConfig create(); static CrossOriginConfig create(Config corsConfig); String pathPattern(); boolean isEnabled(); String[] allowOrigins(); String[] allowHeaders(); String[] exposeHeaders(); String[] allowMethods(); boolean allowCredentials(); long maxAgeSeconds(); boolean matches(String method); @Override String toString(); static final String CORS_PATHS_CONFIG_KEY; static final String ACCESS_CONTROL_ALLOW_HEADERS; static final String ACCESS_CONTROL_ALLOW_METHODS; static final String ACCESS_CONTROL_ALLOW_CREDENTIALS; static final String ACCESS_CONTROL_MAX_AGE; static final String ACCESS_CONTROL_EXPOSE_HEADERS; static final String ACCESS_CONTROL_ALLOW_ORIGIN; static final String ACCESS_CONTROL_REQUEST_HEADERS; static final String ACCESS_CONTROL_REQUEST_METHOD; static final long DEFAULT_AGE; }### Answer:
@Test public void testJustDisabled() { Config node = testConfig.get("just-disabled"); assertThat(node, is(notNullValue())); assertThat(node.exists(), is(true)); CrossOriginConfig b = node.as(CrossOriginConfig::create).get(); assertThat(b.isEnabled(), is(false)); }