public int getMaxMaps() {
    return maxMaps;
  }
@Test
  public void testSetMaps() {
    final DistCpOptions.Builder builder = new DistCpOptions.Builder(
        Collections.singletonList(new Path("hdfs://localhost:8020/source")),
        new Path("hdfs://localhost:8020/target/"));
    Assert.assertEquals(DistCpConstants.DEFAULT_MAPS,
        builder.build().getMaxMaps());

    builder.maxMaps(1);
    Assert.assertEquals(1, builder.build().getMaxMaps());

    builder.maxMaps(0);
    Assert.assertEquals(1, builder.build().getMaxMaps());
  }