@Test
public void testSetBandwidth() {

  final DistCpOptions.Builder builder = new DistCpOptions.Builder(
      Collections.singletonList(new Path("hdfs://localhost:8020/source")),
      new Path("hdfs://localhost:8020/target/"));
  Assert.assertEquals(0, builder.build().getMapBandwidth(), DELTA);
  builder.withMapBandwidth(11);
  Assert.assertEquals(11, builder.build().getMapBandwidth(), DELTA);
}