@Test
public void testArguments() throws IOException {

  String[] args =
      new String[]{
          "-input", "A",
          "-whitelist", "B",
          "-blacklist", "C",
          "-fs", "hdfs://C:8020",
          "-target", "D",
          "-initialReplication", "100",
          "-acceptableReplication", "120",
          "-finalReplication", "140",
          "-timeout", "10"};
  FrameworkUploader uploader = new FrameworkUploader();
  boolean success = uploader.parseArguments(args);
  Assert.assertTrue("Expected to print help", success);
  Assert.assertEquals("Input mismatch", "A",
      uploader.input);
  Assert.assertEquals("Whitelist mismatch", "B",
      uploader.whitelist);
  Assert.assertEquals("Blacklist mismatch", "C",
      uploader.blacklist);
  Assert.assertEquals("Target mismatch", "hdfs://C:8020/D",
      uploader.target);
  Assert.assertEquals("Initial replication mismatch", 100,
      uploader.initialReplication);
  Assert.assertEquals("Acceptable replication mismatch", 120,
      uploader.acceptableReplication);
  Assert.assertEquals("Final replication mismatch", 140,
      uploader.finalReplication);
  Assert.assertEquals("Timeout mismatch", 10,
      uploader.timeout);
}