for ( i=0, k=sort[0]; k==sort[0]; ++i, k=sort[i] );
k1 = k; i1 = i;
for ( i=len, k=sort[len]; i>=0 && k==sort[len]; --i, k=sort[i] );
i2 = i;
LiteralIterator iter = map.keyRangeIterator(k1, true, sort[len], false);
for ( i=i1; iter.hasNext() && i <= i2; ++i ) {
assertEquals(iter.nextLong(), sort[i]);
}
assertTrue(!iter.hasNext() && i == i2+1);
iter = map.valueRangeIterator(k1, true, sort[len], false);
for ( i=i1; iter.hasNext() && i <= i2; ++i ) {
assertEquals(iter.nextInt(), sort[i]);
}
assertTrue(!iter.hasNext() && i == i2+1);
}