private static Properties createPropertiesQuery(String dataSource,
                                                  String queryType,
                                                  String jsonQuery,
                                                  String columnNames,
                                                  String columnTypes) {
    Properties tbl = new Properties();

    // Set the configuration parameters
    tbl.setProperty(Constants.DRUID_DATA_SOURCE, dataSource);
    tbl.setProperty(Constants.DRUID_QUERY_JSON, jsonQuery);
    tbl.setProperty(Constants.DRUID_QUERY_TYPE, queryType);
    tbl.setProperty(Constants.DRUID_QUERY_FIELD_NAMES, columnNames);
    tbl.setProperty(Constants.DRUID_QUERY_FIELD_TYPES, columnTypes);
    return tbl;
  }
Basic tests for Druid SerDe. The examples are taken from Druid 0.9.1.1
documentation.
druid-handler/src/test/org/apache/hadoop/hive/druid/serde/TestDruidSerDe.java