CollectionDriverManager { public boolean getCollectionSwitchStatus() { boolean collectionSwitchStatus = false; if (getDriver() != null) { File file = getConfigurationFile(); if (file != null) { PropertiesUtil propertiesUtil = new PropertiesUtil(file); if (propertiesUtil != null) { String status = propertiesUtil.getProperty(getDriver() .getCollectionSwitchName()); if (status.equalsIgnoreCase("true")) { collectionSwitchStatus = true; } } } } else { logger.error("In the method changeCollectionSwitchStatus of class CollectionDriverManager, driver is null."); } return collectionSwitchStatus; }  void init(); CollectionDriver getDriver(); synchronized void changeCollectionSwitchStatus(boolean enabled); boolean getCollectionSwitchStatus(); static File getConfigurationFile(); void setDriver(CollectionDriver driver); static void setFile(File file); void setCollectionInitializerService(ICollectionInitializerService collectionInitializerService); void setCollectOperationManager(CollectOperationManager collectOperationManager); void setDataContainer(DataContainer dataContainer); void setDriverClass(String driverClass);  }
@Test(groups = { "TestCollectionDriverManager" }, dependsOnMethods = { "testChangeCollectionSwitchStatus" }) public void testGetCollectionSwitchStatus() { assertTrue(collectionDriverManager.getCollectionSwitchStatus()); }