@Test
public void testRangeQuery() throws InterruptedException, ExecutionException
{
Assume.assumeTrue(test2i);
RiakClient client = new RiakClient(cluster);
IndexedPojo ip = new IndexedPojo();
ip.key = "index_test_object_key1";
ip.bucketName = bucketName.toString();
ip.indexKey = new BigInteger("91234567890123456789012345678901234567890");
ip.value = "My Object Value!";
StoreValue sv = new StoreValue.Builder(ip).build();
RiakFuture<StoreValue.Response, Location> svFuture = client.executeAsync(sv);
svFuture.await();
assertTrue(svFuture.isSuccess());
IndexedPojo ip2 = new IndexedPojo();
ip2.key = "index_test_object_key2";
ip2.bucketName = bucketName.toString();
ip2.indexKey = new BigInteger("91234567890123456789012345678901234567898");
ip2.value = "My Object Value!";
sv = new StoreValue.Builder(ip2).build();
svFuture = client.executeAsync(sv);
svFuture.await();
assertTrue(svFuture.isSuccess());
Namespace ns = new Namespace(Namespace.DEFAULT_BUCKET_TYPE, bucketName.toString());
BigIntIndexQuery iiq =
new BigIntIndexQuery.Builder(ns, "test_index",
new BigInteger("91234567890123456789012345678901234567890"),
new BigInteger("91234567890123456789012345678901234567898"))
.withKeyAndIndex(true)
.build();
BigIntIndexQuery.Response iResp = client.execute(iiq);
assertTrue(iResp.hasEntries());
assertEquals(2, iResp.getEntries().size());
boolean found = false;
for (BigIntIndexQuery.Response.Entry e : iResp.getEntries())