### Question:
GreySwitchCfg { public synchronized static void tryLoadCfg(String filePath) { File file = new File(filePath); if (!file.exists()) { return; } if (!file.canRead()) { logger.warn("greyswitch config file: {} could not be read", filePath); return; } logger.info("greyswitch config file loading..."); try (BufferedReader br = new BufferedReader(new FileReader(file))) { br.lines().map(line -> line.trim()) .filter(line -> !line.isEmpty() && !line.startsWith("#")).forEach(line -> { String[] kv = line.split(" "); if (kv.length != 2) return; if ("global".equals(kv[0]) || Constants.HOSTNAME.equals(kv[0])) { handleGlobalCfg(kv[1]); } }); } catch (Exception e) { logger.error("some thing error occured when load desensitization config file", e); } logger.info("greyswitch config file load complete"); }  synchronized static void tryLoadCfg(String filePath);  }### Answer:
@Test public void testGreySwitchCfg() throws InterruptedException { GreySwitchCfg .tryLoadCfg(getClass().getClassLoader().getResource("dal-grey-switch.cfg").getFile()); assertFalse(GreySwitch.getInstance().isSmartAutoKillerOpen()); assertFalse(GreySwitch.getInstance().isAllowSendAuditSqlToRmq()); assertEquals(GreySwitch.getInstance().getLoginSlowInMills(), -1); assertEquals(GreySwitch.getInstance().getLoginTimeoutInMills(), -1); assertEquals(GreySwitch.getInstance().getOverflowTraceFrequency(), -1); assertFalse(GreySwitch.getInstance().isAllowDalGroupHealthCheck()); }