Program: 11308
Project: 11308
Buggy source:
@Before public void init() throws Exception {
  createdItemIds.clear();
  dataGenerator.getCreatedItemIds().clear();
  final Collection<ItemConfiguration> itemConfigurations=new ArrayList<>();
  final ItemConfiguration stubItemConfiguration=new ItemConfiguration(StubItem.class,dataGenerator.getStubItemTableName());
  final ItemConfiguration stubItemWithRangeConfiguration=new ItemConfiguration(StubWithRangeItem.class,dataGenerator.getStubItemWithRangeTableName(),new CompoundPrimaryKeyDefinition("String_Node_Str","String_Node_Str"));
  final ParentItemConfiguration stubParentItemConfiguration=new ParentItemConfiguration(StubParentItem.class,dataGenerator.getStubItemTableName());
  final ItemConfiguration stubItemwithGsiConfiguration=new ItemConfiguration(StubWithGlobalSecondaryIndexItem.class,dataGenerator.getStubItemWithGsiTableName());
  stubItemwithGsiConfiguration.registerIndexes((Arrays.asList(new CompoundIndexDefinition("String_Node_Str","String_Node_Str"))));
  itemConfigurations.add(stubItemConfiguration);
  itemConfigurations.add(stubItemWithRangeConfiguration);
  itemConfigurations.add(stubParentItemConfiguration);
  itemConfigurations.add(new VariantItemConfiguration(stubParentItemConfiguration,StubVariantItem.class,"String_Node_Str"));
  itemConfigurations.add(stubItemwithGsiConfiguration);
  databaseSchemaHolder=new DatabaseSchemaHolder(dataGenerator.getUnitTestSchemaName(),itemConfigurations);
}

Fixed version (ground truth):
@Before public void init() throws Exception {
  createdItemIds.clear();
  dataGenerator.getCreatedItemIds().clear();
  final Collection<ItemConfiguration> itemConfigurations=new ArrayList<>();
  final ItemConfiguration stubItemConfiguration=new ItemConfiguration(StubItem.class,dataGenerator.getStubItemTableName());
  final ItemConfiguration stubItemWithRangeConfiguration=new ItemConfiguration(StubWithRangeItem.class,dataGenerator.getStubItemWithRangeTableName(),new CompoundPrimaryKeyDefinition("String_Node_Str","String_Node_Str"));
  final ParentItemConfiguration stubParentItemConfiguration=new ParentItemConfiguration(StubParentItem.class,dataGenerator.getStubItemTableName());
  final ItemConfiguration stubItemwithGsiConfiguration=new ItemConfiguration(StubWithGlobalSecondaryIndexItem.class,dataGenerator.getStubItemWithGsiTableName());
  stubItemwithGsiConfiguration.registerIndexes((Arrays.asList(new CompoundIndexDefinition("String_Node_Str","String_Node_Str"))));
  final ItemConfiguration stubItemWithHashAndRangeAndGsiConfiguration=new ItemConfiguration(StubWithHashAndRangeAndGlobalSecondaryIndexItem.class,dataGenerator.getStubItemWithHashAndRangeAndGsiTableName(),new CompoundPrimaryKeyDefinition("String_Node_Str","String_Node_Str"));
  stubItemWithHashAndRangeAndGsiConfiguration.registerIndexes((Arrays.asList(new CompoundIndexDefinition("String_Node_Str","String_Node_Str"))));
  itemConfigurations.add(stubItemConfiguration);
  itemConfigurations.add(stubItemWithRangeConfiguration);
  itemConfigurations.add(stubParentItemConfiguration);
  itemConfigurations.add(new VariantItemConfiguration(stubParentItemConfiguration,StubVariantItem.class,"String_Node_Str"));
  itemConfigurations.add(stubItemwithGsiConfiguration);
  itemConfigurations.add(stubItemWithHashAndRangeAndGsiConfiguration);
  databaseSchemaHolder=new DatabaseSchemaHolder(dataGenerator.getUnitTestSchemaName(),itemConfigurations);
}