GeoRocket extends AbstractVerticle { private static void overwriteWithEnvironmentVariables(JsonObject conf) { overwriteWithEnvironmentVariables(conf, System.getenv()); }  @Override void start(Future<Void> startFuture); static String getVersion(); static void main(String[] args);  }
@Test public void testOverwriteWithEnvironmentVariables() { final String PROP_KEY = ConfigConstants.LOG_CONFIG; final String ENV_KEY = PROP_KEY .replace(".", "_") .toUpperCase(); final String VALUE = "test"; JsonObject conf = new JsonObject(); Map<String, String> env = new HashMap<String, String>(); env.put(ENV_KEY, VALUE); GeoRocket.overwriteWithEnvironmentVariables(conf, env); assertEquals(Sets.newHashSet(PROP_KEY), conf.getMap().keySet()); assertEquals(VALUE, conf.getString(PROP_KEY)); }