private DataSegment createSegment(String location, Interval interval, String version, ShardSpec shardSpec)
      throws IOException {
    FileUtils.writeStringToFile(new File(location), "dummySegmentData");
    return DataSegment.builder().dataSource(DATA_SOURCE_NAME).version(version).interval(interval).shardSpec(shardSpec)
        .loadSpec(ImmutableMap.of("path", location)).size(1000L)
        .build();
  }
Test class for Druid Storage handler.
druid-handler/src/test/org/apache/hadoop/hive/druid/TestDruidStorageHandler.java