Source:
<code><START> public void testTimeseriesWithBetweenFilter1() <END> { TimeseriesQuery query = Druids.newTimeseriesQueryBuilder() .dataSource(QueryRunnerTestHelper.dataSource) .granularity(QueryRunnerTestHelper.dayGran) .filters( new AndDimFilter( Arrays.asList( new BetweenDimFilter( QueryRunnerTestHelper.marketDimension, "spa", "spot", true, null, null ), new BetweenDimFilter( QueryRunnerTestHelper.marketDimension, "spot", "spotify", null, true, null ), (DimFilter) new BetweenDimFilter( QueryRunnerTestHelper.marketDimension, "SPOT", "spot", null, null, null ) ) ) ) .intervals(QueryRunnerTestHelper.firstToThird) .aggregators( Arrays.<AggregatorFactory>asList( QueryRunnerTestHelper.rowsCount, QueryRunnerTestHelper.indexLongSum, QueryRunnerTestHelper.qualityUniques ) ) .postAggregators(Arrays.<PostAggregator>asList(QueryRunnerTestHelper.addRowsIndexConstant)) .build(); List<Result<TimeseriesResultValue>> expectedResults = Arrays.asList( new Result<>( new DateTime("2011-04-01"), new TimeseriesResultValue( ImmutableMap.<String, Object>of( "rows", 9L, "index", 1102L, "addRowsIndexConstant", 1112.0, "uniques", QueryRunnerTestHelper.UNIQUES_9 ) ) ), new Result<>( new DateTime("2011-04-02"), new TimeseriesResultValue( ImmutableMap.<String, Object>of( "rows", 9L, "index", 1120L, "addRowsIndexConstant", 1130.0, "uniques", QueryRunnerTestHelper.UNIQUES_9 ) ) ) ); Iterable<Result<TimeseriesResultValue>> results = Sequences.toList( runner.run(query, CONTEXT), Lists.<Result<TimeseriesResultValue>>newArrayList() ); TestHelper.assertExpectedResults(expectedResults, results); }</code><technical_language>Formatting looks...</technical_language>

Target:
public void testTimeseriesWithBetweenFilter1() { TimeseriesQuery query = Druids.newTimeseriesQueryBuilder() .dataSource(QueryRunnerTestHelper.dataSource) .granularity(QueryRunnerTestHelper.dayGran) .filters( new AndDimFilter( Arrays.asList( new BoundDimFilter( QueryRunnerTestHelper.marketDimension, "spa", "spot", true, null, null ), new BoundDimFilter( QueryRunnerTestHelper.marketDimension, "spot", "spotify", null, true, null ), (DimFilter) new BoundDimFilter( QueryRunnerTestHelper.marketDimension, "SPOT", "spot", null, null, null ) ) ) ) .intervals(QueryRunnerTestHelper.firstToThird) .aggregators( Arrays.<AggregatorFactory>asList( QueryRunnerTestHelper.rowsCount, QueryRunnerTestHelper.indexLongSum, QueryRunnerTestHelper.qualityUniques ) ) .postAggregators(Arrays.<PostAggregator>asList(QueryRunnerTestHelper.addRowsIndexConstant)) .build(); List<Result<TimeseriesResultValue>> expectedResults = Arrays.asList( new Result<>( new DateTime("2011-04-01"), new TimeseriesResultValue( ImmutableMap.<String, Object>of( "rows", 9L, "index", 1102L, "addRowsIndexConstant", 1112.0, "uniques", QueryRunnerTestHelper.UNIQUES_9 ) ) ), new Result<>( new DateTime("2011-04-02"), new TimeseriesResultValue( ImmutableMap.<String, Object>of( "rows", 9L, "index", 1120L, "addRowsIndexConstant", 1130.0, "uniques", QueryRunnerTestHelper.UNIQUES_9 ) ) ) ); Iterable<Result<TimeseriesResultValue>> results = Sequences.toList( runner.run(query, CONTEXT), Lists.<Result<TimeseriesResultValue>>newArrayList() ); TestHelper.assertExpectedResults(expectedResults, results); }