Program: 6103
Project: 6103
Buggy source:
/** 
 * Tests the secure storage macro function in a pipelines by creating datasets from the secure store data.
 */
private void testSecureStorePipeline(Engine engine,String prefix) throws Exception {
  ETLBatchConfig etlConfig=ETLBatchConfig.builder("String_Node_Str").addStage(new ETLStage("String_Node_Str",MockRuntimeDatasetSource.getPlugin("String_Node_Str","String_Node_Str" + prefix + "String_Node_Str"))).addStage(new ETLStage("String_Node_Str",MockRuntimeDatasetSink.getPlugin("String_Node_Str","String_Node_Str" + prefix + "String_Node_Str"))).addConnection("String_Node_Str","String_Node_Str").setEngine(engine).build();
  getSecureStoreManager().put("String_Node_Str",prefix + "String_Node_Str",(prefix + "String_Node_Str").getBytes(),"String_Node_Str",new HashMap<String,String>());
  getSecureStoreManager().put("String_Node_Str",prefix + "String_Node_Str",(prefix + "String_Node_Str").getBytes(),"String_Node_Str",new HashMap<String,String>());
  AppRequest<ETLBatchConfig> appRequest=new AppRequest<>(APP_ARTIFACT,etlConfig);
  Id.Application appId=Id.Application.from(Id.Namespace.DEFAULT,"String_Node_Str");
  ApplicationManager appManager=deployApplication(appId,appRequest);
  WorkflowManager workflowManager=appManager.getWorkflowManager(SmartWorkflow.NAME);
  Assert.assertNull(getDataset(prefix + "String_Node_Str").get());
  Assert.assertNull(getDataset(prefix + "String_Node_Str").get());
  workflowManager.start();
  workflowManager.waitForFinish(5,TimeUnit.MINUTES);
  Assert.assertNotNull(getDataset(prefix + "String_Node_Str").get());
  Assert.assertNotNull(getDataset(prefix + "String_Node_Str").get());
}

Fixed version (ground truth):
/** 
 * Tests the secure storage macro function in a pipelines by creating datasets from the secure store data.
 */
private void testSecureStorePipeline(Engine engine,String prefix) throws Exception {
  ETLBatchConfig etlConfig=ETLBatchConfig.builder("String_Node_Str").addStage(new ETLStage("String_Node_Str",MockRuntimeDatasetSource.getPlugin("String_Node_Str","String_Node_Str" + prefix + "String_Node_Str"))).addStage(new ETLStage("String_Node_Str",MockRuntimeDatasetSink.getPlugin("String_Node_Str","String_Node_Str" + prefix + "String_Node_Str"))).addConnection("String_Node_Str","String_Node_Str").setEngine(engine).build();
  getSecureStoreManager().putSecureData("String_Node_Str",prefix + "String_Node_Str",(prefix + "String_Node_Str").getBytes(),"String_Node_Str",new HashMap<String,String>());
  getSecureStoreManager().putSecureData("String_Node_Str",prefix + "String_Node_Str",(prefix + "String_Node_Str").getBytes(),"String_Node_Str",new HashMap<String,String>());
  AppRequest<ETLBatchConfig> appRequest=new AppRequest<>(APP_ARTIFACT,etlConfig);
  Id.Application appId=Id.Application.from(Id.Namespace.DEFAULT,"String_Node_Str");
  ApplicationManager appManager=deployApplication(appId,appRequest);
  WorkflowManager workflowManager=appManager.getWorkflowManager(SmartWorkflow.NAME);
  Assert.assertNull(getDataset(prefix + "String_Node_Str").get());
  Assert.assertNull(getDataset(prefix + "String_Node_Str").get());
  workflowManager.start();
  workflowManager.waitForFinish(5,TimeUnit.MINUTES);
  Assert.assertNotNull(getDataset(prefix + "String_Node_Str").get());
  Assert.assertNotNull(getDataset(prefix + "String_Node_Str").get());
}