@Test
public void testDownloadAndZip() throws IOException {

  String remoteDir = "hdfs://remoteDir/";
  fileUtils.createDirInDir(stagingDir, "remoteDir");
  String resultFilePath = fileSystemOperations.downloadAndZip(remoteDir,
      TARGET_ZIP_DIR);
  File resultFile = new File(resultFilePath);
  assertTrue(resultFile.exists());
  assertTrue(
      String.format(
          "Result file name is '%s' and does not start with prefix '%s'",
          resultFile.getName(), TARGET_ZIP_DIR),
      resultFile.getName().startsWith(TARGET_ZIP_DIR));
}