getClient().putItem(new PutItemRequest().withTableName(tableName).withItem(createGenericItem(hash, range2)));
Key key1 = new Key().withHashKeyElement(hash).withRangeKeyElement(range1);
Key key2 = new Key().withHashKeyElement(hash).withRangeKeyElement(range2);
DeleteItemRequest request1 = new DeleteItemRequest().withTableName(tableName).withKey(key1).withReturnValues(ReturnValue.ALL_OLD);
DeleteItemRequest request2 = new DeleteItemRequest().withTableName(tableName).withKey(key2).withReturnValues(ReturnValue.ALL_OLD);
DeleteItemResult result = getClient().deleteItem(request1);
Assert.assertNotNull(result.getAttributes());
result = getClient().deleteItem(request2);
Assert.assertNotNull(result.getAttributes());
}