@Test
 public void testupdateSegmentListIfDatasourcePathSpecIsUsedWithMultiplePathSpec()
     throws Exception {
   PathSpec pathSpec =
       new MultiplePathSpec(
           ImmutableList.of(
               new StaticPathSpec("/xyz", null),
               new DatasourcePathSpec(
                   jsonMapper,
                   null,
                   new DatasourceIngestionSpec(
                       testDatasource,
                       testDatasourceInterval,
                       null,
                       null,
                       null,
                       null,
                       null,
                       null,
                       false),
                   null)));
   HadoopDruidIndexerConfig config =
       testRunUpdateSegmentListIfDatasourcePathSpecIsUsed(pathSpec, testDatasourceInterval);
   Assert.assertEquals(
       ImmutableList.of(WindowedDataSegment.of(SEGMENT)),
       ((DatasourcePathSpec) ((MultiplePathSpec) config.getPathSpec()).getChildren().get(1))
           .getSegments());
 }
 @Test
 public void
     testupdateSegmentListIfDatasourcePathSpecIsUsedWithJustDatasourcePathSpecAndPartialInterval()
         throws Exception {
   PathSpec pathSpec =
       new DatasourcePathSpec(
           jsonMapper,
           null,
           new DatasourceIngestionSpec(
               testDatasource,
               testDatasourceIntervalPartial,
               null,
               null,
               null,
               null,
               null,
               null,
               false),
           null);
   HadoopDruidIndexerConfig config =
       testRunUpdateSegmentListIfDatasourcePathSpecIsUsed(pathSpec, testDatasourceIntervalPartial);
   Assert.assertEquals(
       ImmutableList.of(new WindowedDataSegment(SEGMENT, testDatasourceIntervalPartial)),
       ((DatasourcePathSpec) config.getPathSpec()).getSegments());
 }
 @Test
 public void testupdateSegmentListIfDatasourcePathSpecIsUsedWithNoDatasourcePathSpec()
     throws Exception {
   PathSpec pathSpec = new StaticPathSpec("/xyz", null);
   HadoopDruidIndexerConfig config =
       testRunUpdateSegmentListIfDatasourcePathSpecIsUsed(pathSpec, null);
   Assert.assertTrue(config.getPathSpec() instanceof StaticPathSpec);
 }