public void putItemWithHashKeyAndRangeKeyOverwriteItem() {
createGenericHashRangeTable(tableName);
PutItemRequest request = new PutItemRequest().withTableName(tableName).withItem(createGenericItem());
getClient().putItem(request); // put item beforehand
PutItemResult res = getClient().putItem(request); // Add another
Assert.assertNotNull(res);
Assert.assertNotNull(res.getConsumedCapacity());
Assert.assertEquals(tableName, res.getConsumedCapacity().getTableName());
Assert.assertNotNull(res.getConsumedCapacity().getCapacityUnits());
}