* @author Patrick Bosek <patrick.bosek@jorsek.com>
* @throws DatabaseConfigurationException
*/
public static void moveDataDirBack(String backupDataDirPath) throws IOException, DatabaseConfigurationException {
Configuration conf = new Configuration();
String dataDirPath = (String) conf.getProperty(BrokerPool.PROPERTY_DATA_DIR);
dataDirPath = dataDirPath.replaceAll("/$", "");
File lastTestRunDataDir = new File(dataDirPath + ".last-test-run");
if(lastTestRunDataDir.exists()) FileUtils.deleteDirectory(lastTestRunDataDir);