@Test
public void testUploadToRemoteFile() throws IOException {

  File testFile = fileUtils.createFileInTempDir("testFile");
  Path path = fileSystemOperations.uploadToRemoteFile(stagingDir,
      testFile.getAbsolutePath());
  File expectedFile = new File(new File(stagingDir.toString()), "testFile");
  assertEquals(expectedFile.getAbsolutePath(), path.toString());
  Set<Path> uploadedFiles = fileSystemOperations.getUploadedFiles();
  assertEquals(1, uploadedFiles.size());
  List<Path> pathList = Lists.newArrayList(uploadedFiles);
  Path storedPath = pathList.get(0);
  assertEquals(path, storedPath);
}