InternalConfig { static <T> T loadfrom(URL url, Class<T> clazz) throws JsonParseException, JsonMappingException, IOException { if (url == null) throw new IllegalArgumentException(); T target = MAPPER.readValue(url, clazz); return target; } InternalConfig(InternalConfigJsonHelper defaults,
                   InternalConfigJsonHelper override,
                   EndpointDiscoveryConfig endpointDiscoveryConfig); SignerConfig getSignerConfig(String serviceName); HttpClientConfig getHttpClientConfig(String httpClientName); SignerConfig getSignerConfig(String serviceName, String regionName); List<HostRegexToRegionMapping> getHostRegexToRegionMappings(); String getUserAgentTemplate(); boolean endpointDiscoveryEnabled(); URL getDefaultConfigFileLocation(); URL getOverrideConfigFileLocation();  }
@Test public void loadFromFile() throws Exception { loadFrom(InternalConfig.DEFAULT_CONFIG_RESOURCE_ABSOLUTE_PATH); }