Program: 97333
Project: 97333
Buggy source:
@Test public void testCommitWithMergeFinish() throws Exception {
  ConflictResolverOperation resolverOperation=new ConflictResolverOperation("String_Node_Str",MergeManagerTest.class.getCanonicalName()){
    @Override protected void doWork(    IProgressMonitor monitor) throws Exception {
      assertTrue("String_Node_Str",wasExecuted());
    }
  }
;
  boolean committed=CommitHandler.commitBranch(new ConflictManagerExternal(DemoBranches.SAW_Bld_1,workingBranch),false,true);
  assertTrue("String_Node_Str",!committed);
  UpdateBranchOperation update=new UpdateBranchOperation(workingBranch,resolverOperation);
  Operations.executeAsJob(update,true);
  Thread.sleep(1000);
  assertTrue("String_Node_Str",!workingBranch.getBranchState().isRebaselineInProgress() && !workingBranch.getBranchState().isRebaselineInProgress());
  committed=CommitHandler.commitBranch(new ConflictManagerExternal(DemoBranches.SAW_Bld_2,workingBranch),false,true);
  assertTrue("String_Node_Str",committed);
  MergeInProgressHandler.handleCommitInProgressPostPrompt(new ConflictManagerExternal(DemoBranches.SAW_Bld_1,workingBranch),DELETE_MERGE,true);
  update=new UpdateBranchOperation(workingBranch,resolverOperation);
  Operations.executeAsJob(update,true);
  Thread.sleep(1000);
  assertTrue("String_Node_Str",!workingBranch.getBranchState().isRebaselineInProgress() && !workingBranch.getBranchState().isRebaselineInProgress());
  Artifact artOnSaw2=ArtifactQuery.getArtifactFromToken(NewArtifactToken,DemoBranches.SAW_Bld_2);
  Operations.executeWorkAndCheckStatus(new PurgeArtifacts(Arrays.asList(artOnSaw2)));
  Thread.sleep(1000);
}

Fixed version (ground truth):
@Test public void testCommitWithMergeFinish() throws Exception {
  ConflictResolverOperation resolverOperation=new ConflictResolverOperation("String_Node_Str",MergeManagerTest.class.getCanonicalName()){
    @Override protected void doWork(    IProgressMonitor monitor) throws Exception {
      assertTrue("String_Node_Str",wasExecuted());
    }
  }
;
  boolean committed=CommitHandler.commitBranch(new ConflictManagerExternal(DemoBranches.SAW_Bld_1,workingBranch),false,true);
  assertTrue("String_Node_Str",!committed);
  UpdateBranchOperation update=new UpdateBranchOperation(workingBranch,resolverOperation);
  Operations.executeWorkAndCheckStatus(update);
  assertTrue("String_Node_Str",!workingBranch.getBranchState().isRebaselineInProgress() && !workingBranch.getBranchState().isRebaselineInProgress());
  committed=CommitHandler.commitBranch(new ConflictManagerExternal(DemoBranches.SAW_Bld_2,workingBranch),false,true);
  assertTrue("String_Node_Str",committed);
  MergeInProgressHandler.handleCommitInProgressPostPrompt(new ConflictManagerExternal(DemoBranches.SAW_Bld_1,workingBranch),DELETE_MERGE,true);
  update=new UpdateBranchOperation(workingBranch,resolverOperation);
  Operations.executeWorkAndCheckStatus(update);
  assertTrue("String_Node_Str",!workingBranch.getBranchState().isRebaselineInProgress() && !workingBranch.getBranchState().isRebaselineInProgress());
  Artifact artOnSaw2=ArtifactQuery.getArtifactFromToken(NewArtifactToken,DemoBranches.SAW_Bld_2);
  Operations.executeWorkAndCheckStatus(new PurgeArtifacts(Arrays.asList(artOnSaw2)));
  Thread.sleep(1000);
}