Program: 132109
Project: 132109
Buggy source:
/** 
 * Builds a complete service Function Schedule Types Object
 * @return ServiceFunctionSchedulerTypes object
 */
public void build_service_function_scheduler_types() throws Exception {
  AsyncDataChangeEvent<InstanceIdentifier<?>,DataObject> dataChangeEvent=Mockito.mock(AsyncDataChangeEvent.class);
  Map<InstanceIdentifier<?>,DataObject> createdData=new HashMap<InstanceIdentifier<?>,DataObject>();
  Set<InstanceIdentifier<?>> removedPaths=new HashSet<InstanceIdentifier<?>>();
  Map<InstanceIdentifier<?>,DataObject> updatedData=new HashMap<InstanceIdentifier<?>,DataObject>();
  Map<InstanceIdentifier<?>,DataObject> originalData=new HashMap<InstanceIdentifier<?>,DataObject>();
  String[] SFST_NAMES={"String_Node_Str","String_Node_Str","String_Node_Str"};
  Class[] schedulerTypes={Random.class,RoundRobin.class,LoadBalance.class};
  Boolean enabledStatus=true;
  for (int i=0; i < SFST_NAMES.length; i++) {
    ServiceFunctionSchedulerTypeKey key=new ServiceFunctionSchedulerTypeKey(schedulerTypes[i]);
    ServiceFunctionSchedulerTypeBuilder sfstBuilder=new ServiceFunctionSchedulerTypeBuilder();
    sfstBuilder.setName(SFST_NAMES[i]).setKey(key).setType(schedulerTypes[i]).setEnabled(enabledStatus);
    ServiceFunctionSchedulerType serviceFunctionSchedulerType=sfstBuilder.build();
    assertTrue(SfcProviderScheduleTypeAPI.putServiceFunctionScheduleTypeExecutor(serviceFunctionSchedulerType));
    InstanceIdentifier<ServiceFunctionSchedulerType> sfstEntryIID=InstanceIdentifier.builder(ServiceFunctionSchedulerTypes.class).child(ServiceFunctionSchedulerType.class,serviceFunctionSchedulerType.getKey()).build();
    createdData.put(sfstEntryIID,serviceFunctionSchedulerType);
  }
  when(dataChangeEvent.getUpdatedData()).thenReturn(updatedData);
  when(dataChangeEvent.getOriginalData()).thenReturn(originalData);
  when(dataChangeEvent.getCreatedData()).thenReturn(createdData);
  when(dataChangeEvent.getRemovedPaths()).thenReturn(removedPaths);
  sfstEntryDataListener.onDataChanged(dataChangeEvent);
  Thread.sleep(500);
}

Fixed version (ground truth):
/** 
 * Builds a complete service Function Schedule Types Object
 * @return ServiceFunctionSchedulerTypes object
 */
public void build_service_function_scheduler_types() throws Exception {
  String[] SFST_NAMES={"String_Node_Str","String_Node_Str","String_Node_Str"};
  Class[] schedulerTypes={Random.class,RoundRobin.class,LoadBalance.class};
  Boolean enabledStatus=true;
  for (int i=0; i < SFST_NAMES.length; i++) {
    AsyncDataChangeEvent<InstanceIdentifier<?>,DataObject> dataChangeEvent=Mockito.mock(AsyncDataChangeEvent.class);
    Map<InstanceIdentifier<?>,DataObject> createdData=new HashMap<InstanceIdentifier<?>,DataObject>();
    Set<InstanceIdentifier<?>> removedPaths=new HashSet<InstanceIdentifier<?>>();
    Map<InstanceIdentifier<?>,DataObject> updatedData=new HashMap<InstanceIdentifier<?>,DataObject>();
    Map<InstanceIdentifier<?>,DataObject> originalData=new HashMap<InstanceIdentifier<?>,DataObject>();
    ServiceFunctionSchedulerTypeKey key=new ServiceFunctionSchedulerTypeKey(schedulerTypes[i]);
    ServiceFunctionSchedulerTypeBuilder sfstBuilder=new ServiceFunctionSchedulerTypeBuilder();
    sfstBuilder.setName(SFST_NAMES[i]).setKey(key).setType(schedulerTypes[i]).setEnabled(enabledStatus);
    ServiceFunctionSchedulerType serviceFunctionSchedulerType=sfstBuilder.build();
    assertTrue(SfcProviderScheduleTypeAPI.putServiceFunctionScheduleTypeExecutor(serviceFunctionSchedulerType));
    InstanceIdentifier<ServiceFunctionSchedulerType> sfstEntryIID=InstanceIdentifier.builder(ServiceFunctionSchedulerTypes.class).child(ServiceFunctionSchedulerType.class,serviceFunctionSchedulerType.getKey()).build();
    createdData.put(sfstEntryIID,serviceFunctionSchedulerType);
    when(dataChangeEvent.getUpdatedData()).thenReturn(updatedData);
    when(dataChangeEvent.getOriginalData()).thenReturn(originalData);
    when(dataChangeEvent.getCreatedData()).thenReturn(createdData);
    when(dataChangeEvent.getRemovedPaths()).thenReturn(removedPaths);
    sfstEntryDataListener.onDataChanged(dataChangeEvent);
    Thread.sleep(500);
  }
}