@Test public void deleteItem() { KeySchema schema = new KeySchema( new KeySchemaElement() .withAttributeName("id") .withAttributeType(ScalarAttributeType.S)); createTable(tableName, schema); AttributeValue hash = new AttributeValue("ad"); // createStringAttribute(); getClient() .putItem(new PutItemRequest().withTableName(tableName).withItem(createGenericItem(hash))); DeleteItemRequest request = new DeleteItemRequest().withTableName(tableName).withKey(new Key(hash)); DeleteItemResult result = getClient().deleteItem(request); Assert.assertNotNull(result.getConsumedCapacityUnits()); }