GlobalConfig { public static void set(String key, Object val) { if (val == null) { CONFIG.remove(key); } else { CONFIG.setProperty(key, val.toString()); } } 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 testPropertyExceptionMessage() { set("oshi.test.property", "test"); assertEquals("Invalid property: \"oshi.test.property\" = test", new GlobalConfig.PropertyException("oshi.test.property").getMessage()); }