@Override protected SegmentAnalysis submitMetadataRequest(String address, SegmentMetadataQuery query)
      throws SerDeException {
    // Retrieve results
    List<SegmentAnalysis> resultsList;
    try {
      resultsList =
          DruidStorageHandlerUtils.JSON_MAPPER.readValue(RESPONSE, new TypeReference<List<SegmentAnalysis>>() {
          });
    } catch (Exception e) {
      throw new SerDeException(StringUtils.stringifyException(e));
    }
    return resultsList.get(0);
  }
Druid SerDe to be used in tests.
druid-handler/src/test/org/apache/hadoop/hive/druid/QTestDruidSerDe2.java