### Question:
OrgConfig { public List<DALGroup> getDalGroupsByOrg(String org) { return dalGroupsMap.getOrDefault(org, new ArrayList<>()); } private  OrgConfig(); static OrgConfig getInstance(); synchronized void loadConfig(String filepath); List<DALGroup> getDalGroupsByOrg(String org);  }### Answer:
@Test public void getDalGroupsByOrg() { Assert.assertEquals(OrgConfig.getInstance().getDalGroupsByOrg("exs").size(), 0); List<DALGroup> eosGroups = OrgConfig.getInstance().getDalGroupsByOrg("eos"); Assert.assertEquals(eosGroups.size(), 2); Assert .assertTrue(eosGroups.stream().anyMatch(g -> g.getDbGroup().equals("eos_main_group"))); Assert.assertTrue(eosGroups.stream() .anyMatch(g -> g.getName().equals("eos_main_group__sub__bpm_talos_search"))); List<DALGroup> naposGroups = OrgConfig.getInstance().getDalGroupsByOrg("napos"); Assert.assertEquals(naposGroups.size(), 10); Assert.assertTrue(naposGroups.stream().allMatch(g -> g.getDbGroup().equals("napos_group"))); Assert.assertTrue(naposGroups.stream() .anyMatch(g -> g.getName().equals("napos-payservice_srv_wager_group"))); OrgConfig.getInstance().loadConfig("conf/goproxy-front-port.cfg"); }