@Test
public void testParsebandwidth() {

  DistCpOptions options = OptionsParser.parse(new String[] {
      "hdfs://localhost:8020/source/first",
      "hdfs://localhost:8020/target/"});
  Assert.assertEquals(options.getMapBandwidth(), DistCpConstants.DEFAULT_BANDWIDTH_KB);
  options = OptionsParser.parse(new String[] {
      "-bandwidthKB",
      "11",
      "hdfs://localhost:8020/source/first",
      "hdfs://localhost:8020/target/"});
  Assert.assertEquals(options.getMapBandwidth(), 11);
    options = OptionsParser.parse(new String[] {
        "-bandwidth",
        "12",
        "hdfs://localhost:8020/source/first",
        "hdfs://localhost:8020/target/"});
    Assert.assertEquals(options.getMapBandwidth(), 12 * 1024);
}