createTable(tableName, hashAttr, rangeAttr);
AttributeValue hash = new AttributeValue("ad");
AttributeValue range1 = new AttributeValue().withN("1");
AttributeValue range2 = new AttributeValue().withN("2");
getClient().putItem(new PutItemRequest().withTableName(tableName).withItem(createGenericItem(hash, range1)));
getClient().putItem(new PutItemRequest().withTableName(tableName).withItem(createGenericItem(hash, range2)));
DeleteItemRequest request1 = new DeleteItemRequest().withTableName(tableName).withKey(createItemKey("id", hash, "range", range1)).withReturnValues(ReturnValue.ALL_OLD);
DeleteItemRequest request2 = new DeleteItemRequest().withTableName(tableName).withKey(createItemKey("id", hash, "range", range2)).withReturnValues(ReturnValue.ALL_OLD);
DeleteItemResult result = getClient().deleteItem(request1);