EnricherConfig { public String get(Configs.Key key) { return get(key, key.def()); } EnricherConfig(String name, Configuration configuration); String get(Configs.Key key); Map<String, String> getRawConfig(); String get(Configs.Key key, String defaultVal);  }
@Test public void simple() throws Exception { Map<String,TreeMap> configMap = new HashMap<>(); TreeMap map = new TreeMap(); map.put("type","LoadBalancer"); configMap.put("default.service", map); EnricherConfig config = new EnricherConfig( "default.service", new Configuration.Builder().processorConfig(new ProcessorConfig(null, null, configMap)).build()); assertEquals("LoadBalancer",config.get(Config.type)); }