upperBytes.append(uBytes);
// test inclusive range
MultiNodeTermQuery tq = (MultiNodeTermQuery) nmqLong(field, precisionStep, lower, upper, true, true).getNodeQuery();
MultiNodeTermQuery cq = new NodeTermRangeQuery(field, lowerBytes, upperBytes, true, true);
TopDocs tTopDocs = index.searcher.search(dq(tq), 1);
TopDocs cTopDocs = index.searcher.search(dq(cq), 1);
assertEquals("Returned count for NumericRangeQuery and TermRangeQuery must be equal", cTopDocs.totalHits, tTopDocs.totalHits );
totalTermCountT += termCountT = this.countTerms(tq);
totalTermCountC += termCountC = this.countTerms(cq);
this.checkTermCounts(precisionStep, termCountT, termCountC);
// test exclusive range