@Test
public void testUpdateETag() {

    AmazonDynamoDB dynamoDB = PowerMock.createMock(AmazonDynamoDB.class);
    Map<String, AttributeValue> newItem = new HashMap<String, AttributeValue>();
    newItem.put(MarsDynamoDBManager.RESOURCE_TABLE_HASH_KEY, new AttributeValue(resource));
    newItem.put(DynamoDBWorkerUtils.ETAG_KEY, new AttributeValue(eTag));
    dynamoDB.putItem(table, newItem);
    PowerMock.expectLastCall().andReturn(null);
    PowerMock.replayAll();
    DynamoDBWorkerUtils.updateETag(dynamoDB, table, resource, eTag);
    PowerMock.verifyAll();
}