.newIntRange(SirenTestCase.DEFAULT_TEST_FIELD, 4, 1, 10, true, true);
range1To10.setDatatype("xsd:int");
final NodePrimitiveQuery range20To40 = NodeNumericRangeQuery
.newIntRange(SirenTestCase.DEFAULT_TEST_FIELD, 4, 20, 40, true, true);
range20To40.setDatatype("xsd:int");
bq1.add(new LuceneProxyNodeQuery(range1To10), BooleanClause.Occur.SHOULD);
bq1.add(new LuceneProxyNodeQuery(range20To40), BooleanClause.Occur.SHOULD);
final BooleanQuery bq2 = new BooleanQuery();
final NodePrimitiveQuery range10To15 = NodeNumericRangeQuery
.newIntRange(SirenTestCase.DEFAULT_TEST_FIELD, 4, 10, 15, true, true);
range10To15.setDatatype("xsd:int");
final NodePrimitiveQuery range50To55 = NodeNumericRangeQuery
.newIntRange(SirenTestCase.DEFAULT_TEST_FIELD, 4, 50, 55, true, true);
range50To55.setDatatype("xsd:int");
bq2.add(new LuceneProxyNodeQuery(range10To15), BooleanClause.Occur.SHOULD);
bq2.add(new LuceneProxyNodeQuery(range50To55), BooleanClause.Occur.SHOULD);
final BooleanQuery bq3 = new BooleanQuery();
bq3.add(bq1, BooleanClause.Occur.MUST);
bq3.add(bq2, BooleanClause.Occur.MUST);
this._assertSirenQuery(config, bq3, "xsd:int([1 TO 10] OR [20 TO 40]) AND xsd:int([10 TO 15] OR [50 TO 55])");