Fix jUnit test problem with exclusive range if upper==lower (thanks to Michael McCandless): [junit] junit.framework.AssertionFailedError: Returned count of range query must be equal to exclusive range length expected:<0> but was:<-1> at org.apache.lucene.search.trie.TestTrieRangeQuery.testRangeSplit(TestTrieRangeQuery.java:203)