GlobalConfig { public static void load(Properties properties) { CONFIG.putAll(properties); } private  GlobalConfig(); static String get(String key, String def); static int get(String key, int def); static double get(String key, double def); static boolean get(String key, boolean def); static void set(String key, Object val); static void remove(String key); static void clear(); static void load(Properties properties);  }
@Test public void testLoad() { Properties updates = new Properties(); updates.setProperty("oshi.test.property", "321"); load(updates); assertEquals("321", get("oshi.test.property", null)); }