Program: 125401
Project: 125401
Buggy source:
protected void testGetSerializableProcess(LocalRepositoryFactory repositoryFactory,String path) throws PersistenceException, CoreException {
  ProcessItem pItem=createTempProcessItem(repositoryFactory,path);
  String jobId=pItem.getProperty().getId();
  Object fullFolder=getFullFolder(repositoryFactory,sampleProject,ERepositoryObjectType.PROCESS,path);
  List<IRepositoryViewObject> serializableFromFolder=repositoryFactory.getSerializableFromFolder(ProjectManager.getInstance().getCurrentProject(),fullFolder,jobId,ERepositoryObjectType.PROCESS,true,true,true,false);
  assertNotNull(serializableFromFolder);
  assertTrue(serializableFromFolder.size() == 1);
  IRepositoryViewObject rvo=serializableFromFolder.get(0);
  assertTrue(((NodeType)((ProcessItem)(serializableFromFolder.get(0).getProperty().getItem())).getProcess().getNode().get(0)).getComponentVersion().equals("String_Node_Str"));
  repositoryFactory.deleteObjectLogical(sampleProject,rvo);
  serializableFromFolder=repositoryFactory.getSerializableFromFolder(sampleProject,fullFolder,jobId,ERepositoryObjectType.PROCESS,true,true,true,false);
  assertNotNull(serializableFromFolder);
  assertTrue(serializableFromFolder.size() == 1);
  assertTrue(((NodeType)((ProcessItem)(serializableFromFolder.get(0).getProperty().getItem())).getProcess().getNode().get(0)).getComponentVersion().equals("String_Node_Str"));
  serializableFromFolder=repositoryFactory.getSerializableFromFolder(sampleProject,fullFolder,jobId,ERepositoryObjectType.PROCESS,true,true,false,false);
  assertNotNull(serializableFromFolder);
  assertTrue(serializableFromFolder.size() == 0);
  repositoryFactory.deleteObjectPhysical(sampleProject,rvo);
  serializableFromFolder=repositoryFactory.getSerializableFromFolder(sampleProject,fullFolder,jobId,ERepositoryObjectType.PROCESS,true,true,true,false);
  assertNotNull(serializableFromFolder);
  assertTrue(serializableFromFolder.size() == 0);
}

Fixed version (ground truth):
protected void testGetSerializableProcess(LocalRepositoryFactory repositoryFactory,String path) throws PersistenceException, CoreException {
  ProcessItem pItem=createTempProcessItem(repositoryFactory,path);
  String jobId=pItem.getProperty().getId();
  Object fullFolder=getFullFolder(repositoryFactory,sampleProject,ERepositoryObjectType.PROCESS,path);
  List<IRepositoryViewObject> serializableFromFolder=repositoryFactory.getSerializableFromFolder(ProjectManager.getInstance().getCurrentProject(),fullFolder,jobId,ERepositoryObjectType.PROCESS,true,true,true,false);
  assertNotNull(serializableFromFolder);
  assertTrue(serializableFromFolder.size() == 1);
  IRepositoryViewObject rvo=serializableFromFolder.get(0);
  assertTrue(((NodeType)((ProcessItem)(serializableFromFolder.get(0).getProperty().getItem())).getProcess().getNode().get(0)).getComponentVersion().equals("String_Node_Str"));
  repositoryFactory.deleteObjectLogical(sampleProject,rvo);
  serializableFromFolder=repositoryFactory.getSerializableFromFolder(sampleProject,fullFolder,jobId,ERepositoryObjectType.PROCESS,true,true,true,false);
  assertNotNull(serializableFromFolder);
  assertTrue(serializableFromFolder.size() == 1);
  assertTrue(((NodeType)((ProcessItem)(serializableFromFolder.get(0).getProperty().getItem())).getProcess().getNode().get(0)).getComponentVersion().equals("String_Node_Str"));
  serializableFromFolder=repositoryFactory.getSerializableFromFolder(sampleProject,fullFolder,jobId,ERepositoryObjectType.PROCESS,true,true,false,false);
  assertNotNull(serializableFromFolder);
  assertTrue(serializableFromFolder.size() == 0);
  repositoryFactory.deleteObjectPhysical(sampleProject,rvo,false);
  serializableFromFolder=repositoryFactory.getSerializableFromFolder(sampleProject,fullFolder,jobId,ERepositoryObjectType.PROCESS,true,true,true,false);
  assertNotNull(serializableFromFolder);
  assertTrue(serializableFromFolder.size() == 0);
}