TankSettings implements Serializable { public boolean hasRegionConfigured(String region) { boolean ret = false; if (config.needsReload()) { init(); } try { ret = regions.stream().anyMatch(r -> r.name().equalsIgnoreCase(region)); } catch (Exception e) { LOG.error("Error finding region: " + e, e); } return ret; }  @PostConstruct void init(); boolean isStandalone(); boolean hasRegionConfigured(String region); List<VMRegion> getVmRegions(); String getControllerUrl();  }
@Test public void testHasRegionConfigured_1() throws Exception { String region = ""; boolean result = tankSettings.hasRegionConfigured(region); }
@Test public void testHasRegionConfigured_2() throws Exception { String region = ""; boolean result = tankSettings.hasRegionConfigured(region); }
@Test public void testHasRegionConfigured_3() throws Exception { String region = ""; boolean result = tankSettings.hasRegionConfigured(region); assertTrue(!result); }