@Test
public void testToString() {

  DistCpOptions option = new DistCpOptions.Builder(new Path("abc"),
      new Path("xyz")).build();
  String val = "DistCpOptions{atomicCommit=false, syncFolder=false, " +
      "deleteMissing=false, ignoreFailures=false, overwrite=false, " +
      "append=false, useDiff=false, useRdiff=false, " +
      "fromSnapshot=null, toSnapshot=null, " +
      "skipCRC=false, blocking=true, numListstatusThreads=0, maxMaps=20, " +
      "mapBandwidth=0.0, copyStrategy='uniformsize', preserveStatus=[], " +
      "atomicWorkPath=null, logPath=null, sourceFileListing=abc, " +
      "sourcePaths=null, targetPath=xyz, filtersFile='null', " +
      "blocksPerChunk=0, copyBufferSize=8192, verboseLog=false, " +
      "directWrite=false}";
  String optionString = option.toString();
  Assert.assertEquals(val, optionString);
  Assert.assertNotSame(DistCpOptionSwitch.ATOMIC_COMMIT.toString(),
      DistCpOptionSwitch.ATOMIC_COMMIT.name());
}