public File getDataDirectory() {
    return dataDirectory;
  }
@Test
  public void override_data_dir() throws Exception {
    File sqHomeDir = temp.newFolder();
    File tempDir = temp.newFolder();
    File dataDir = temp.newFolder();
    Props props = new Props(new Properties());
    props.set(PATH_HOME.getKey(), sqHomeDir.getAbsolutePath());
    props.set(PATH_TEMP.getKey(), tempDir.getAbsolutePath());
    props.set(PATH_LOGS.getKey(), temp.newFolder().getAbsolutePath());

    props.set(PATH_DATA.getKey(), dataDir.getAbsolutePath());

    EsInstallation underTest = new EsInstallation(props);

    assertThat(underTest.getDataDirectory()).isEqualTo(new File(dataDir, "es8"));
  }