attributeValueList.add(new AttributeValue().withS("Range2"));
attributeValueList.add(new AttributeValue().withS("Range3"));
rangeKeyCondition.setAttributeValueList(attributeValueList);
rangeKeyCondition.setComparisonOperator(ComparisonOperator.BETWEEN);
request.setRangeKeyCondition(rangeKeyCondition);
QueryResult result = getClient().query(request);
Assert.assertNotNull("Null result.", result);
Assert.assertNotNull("No items returned.", result.getItems());
Assert.assertEquals("Should return two items.", 2, result.getItems().size());
for (Map<String, AttributeValue> item : result.getItems()) {
Assert.assertTrue(
(item.get("range").getS().compareTo("Range2") == 0)
||
(item.get("range").getS().compareTo("Range3") == 0)
);