### Question:
AuthConfig { public List<KeyLocation> getKeys() { return keys; }  JerseyClientConfiguration getKeyLoaderClient(); AuthConfig setKeyLoaderClient(JerseyClientConfiguration keyLoaderClient); List<KeyLocation> getKeys(); AuthConfig setKeys(List<KeyLocation> keys); long getLeeway(); AuthConfig setLeeway(long leeway); boolean isDisableAuth(); AuthConfig setDisableAuth(boolean disableAuth);  }### Answer:
@Test public void shouldReadConfigFromJsonEnvironment() throws Exception { String configPath = "test-config.yaml"; String config = readConfigWithSubstitution(configPath); TestConfig testConfig = new ObjectMapper(new YAMLFactory()) .disable(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES) .readValue(config, TestConfig.class); assertThat(testConfig).isNotNull(); assertThat(testConfig.getAuth()).isNotNull(); assertThat(testConfig.getAuth().getKeys()) .extracting(KeyLocation::getType, KeyLocation::getLocation, KeyLocation::getPemKeyId) .containsExactly( tuple( KeyUriType.PEM, new File(ResourceHelpers.resourceFilePath("example.pem")).toURI(), "example"), tuple( KeyUriType.OPEN_ID_DISCOVERY, URI.create("http: null)); }