@Test
public void testMoveData() throws IOException, InterruptedException {

  File dataPath = new File("target/test" + getClass().getSimpleName() + "/testMoveData/dataPathOfTestMoveData");
  dataPath.mkdirs();
  new MysqlServerController().moveData(dataPath.getAbsolutePath(), Long.MAX_VALUE);
  assertThat(dataPath.exists(), is(false));
  assertThat(dataPath.getParentFile().list().length == 1, is(true));
  dataPath.mkdirs();
  new MysqlServerController().moveData(dataPath.getAbsolutePath(), Long.MAX_VALUE);
  assertThat(dataPath.exists(), is(false));
  assertThat(dataPath.getParentFile().list().length == 2, is(true));
  Thread.sleep(1000);
  dataPath.mkdirs();
  new MysqlServerController().moveData(dataPath.getAbsolutePath(), 500);
  assertThat(dataPath.exists(), is(false));
  assertThat(dataPath.getParentFile().list().length == 1, is(true));
}