test_class.declarator: table = "table"
test_class.modifier: private static final
test_class.original_string: private static final String table = "table";
test_class.type: String
test_class.var_name: table
test_class.declarator: resource = "resource"
test_class.modifier: private static final
test_class.original_string: private static final String resource = "resource";
test_class.type: String
test_class.var_name: resource
test_class.declarator: eTag = "eTag"
test_class.modifier: private static final
test_class.original_string: private static final String eTag = "eTag";
test_class.type: String
test_class.var_name: eTag
test_class.file: ingester/src/test/java/com/amazonaws/services/dynamodbv2/json/demo/mars/worker/DynamoDBWorkerUtilsTest.java
test_class.identifier: DynamoDBWorkerUtilsTest
test_case.body: @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();
      }
test_case.class_method_signature: DynamoDBWorkerUtilsTest.testUpdateETag()
test_case.full_signature: @Test public void testUpdateETag()
test_case.identifier: testUpdateETag
test_case.invocations: createMock put put putItem andReturn expectLastCall replayAll updateETag verifyAll
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testUpdateETag()
focal_class.declarator: ETAG_KEY = "ETag"
focal_class.modifier: public static final
focal_class.original_string: public static final String ETAG_KEY = "ETag";
focal_class.type: String
focal_class.var_name: ETAG_KEY
focal_class.file: ingester/src/main/java/com/amazonaws/services/dynamodbv2/json/demo/mars/worker/DynamoDBWorkerUtils.java
focal_class.identifier: DynamoDBWorkerUtils
focal_class.class_method_signature: DynamoDBWorkerUtils.getStoredETag(final AmazonDynamoDB dynamoDB, final String table, final String resource)
focal_class.full_signature: public static String getStoredETag(final AmazonDynamoDB dynamoDB, final String table, final String resource)
focal_class.identifier: getStoredETag
focal_class.modifiers: public static
focal_class.parameters: (final AmazonDynamoDB dynamoDB, final String table, final String resource)
focal_class.return: String
focal_class.signature: String getStoredETag(final AmazonDynamoDB dynamoDB, final String table, final String resource)
focal_class.class_method_signature: DynamoDBWorkerUtils.updateETag(final AmazonDynamoDB dynamoDB, final String table, final String resource,
          final String eTag)
focal_class.full_signature: public static void updateETag(final AmazonDynamoDB dynamoDB, final String table, final String resource,
          final String eTag)
focal_class.identifier: updateETag
focal_class.modifiers: public static
focal_class.parameters: (final AmazonDynamoDB dynamoDB, final String table, final String resource,
          final String eTag)
focal_class.return: void
focal_class.signature: void updateETag(final AmazonDynamoDB dynamoDB, final String table, final String resource,
          final String eTag)
focal_class.class_method_signature: DynamoDBWorkerUtils.DynamoDBWorkerUtils()
focal_class.full_signature: private  DynamoDBWorkerUtils()
focal_class.identifier: DynamoDBWorkerUtils
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.signature:  DynamoDBWorkerUtils()
focal_method.body: public static void updateETag(final AmazonDynamoDB dynamoDB, final String table, final String resource,
          final String eTag) {
          // Build item
          final Map<String, AttributeValue> newResource = new HashMap<>();
          newResource.put(MarsDynamoDBManager.RESOURCE_TABLE_HASH_KEY, new AttributeValue(resource));
          newResource.put(DynamoDBWorkerUtils.ETAG_KEY, new AttributeValue(eTag));
          dynamoDB.putItem(table, newResource);
      }
focal_method.class_method_signature: DynamoDBWorkerUtils.updateETag(final AmazonDynamoDB dynamoDB, final String table, final String resource,
          final String eTag)
focal_method.full_signature: public static void updateETag(final AmazonDynamoDB dynamoDB, final String table, final String resource,
          final String eTag)
focal_method.identifier: updateETag
focal_method.invocations: put put putItem
focal_method.modifiers: public static
focal_method.parameters: (final AmazonDynamoDB dynamoDB, final String table, final String resource,
          final String eTag)
focal_method.return: void
focal_method.signature: void updateETag(final AmazonDynamoDB dynamoDB, final String table, final String resource,
          final String eTag)