Program: 125408
Project: 125408
Buggy source:
/** 
 * Test method for  {@link org.talend.repository.localprovider.model.LocalRepositoryFactory#create(org.talend.core.model.general.Project,org.talend.core.model.properties.Item,org.eclipse.core.runtime.IPath,boolean[])}.
 * @throws CoreException
 * @throws PersistenceException
 * @throws LoginException
 */
@Test public void testCreate() throws PersistenceException, CoreException, LoginException {
  repositoryFactory.logOnProject(sampleProject);
  Property property=PropertiesFactory.eINSTANCE.createProperty();
  property.setAuthor(sampleProject.getAuthor());
  property.setVersion(VersionUtils.DEFAULT_VERSION);
  property.setLabel("String_Node_Str");
  property.setDisplayName("String_Node_Str");
  property.setStatusCode("String_Node_Str");
  property.setId(repositoryFactory.getNextId());
  ProcessItem processItem=PropertiesFactory.eINSTANCE.createProcessItem();
  processItem.setProperty(property);
  ProcessType process=TalendFileFactory.eINSTANCE.createProcessType();
  processItem.setProcess(process);
  assertNull(processItem.eResource());
  repositoryFactory.create(sampleProject,processItem,new Path("String_Node_Str"),false);
  assertNotNull(processItem.eResource());
  IProject project=ResourceUtils.getProject(sampleProject.getTechnicalLabel());
  checkFileExists(project,ERepositoryObjectType.PROCESS,"String_Node_Str","String_Node_Str",VersionUtils.DEFAULT_VERSION);
  repositoryFactory.deleteObjectPhysical(sampleProject,new RepositoryObject(property));
  checkFileNotExists(project,ERepositoryObjectType.PROCESS,"String_Node_Str","String_Node_Str",VersionUtils.DEFAULT_VERSION);
}

Fixed version (ground truth):
/** 
 * Test method for  {@link org.talend.repository.localprovider.model.LocalRepositoryFactory#create(org.talend.core.model.general.Project,org.talend.core.model.properties.Item,org.eclipse.core.runtime.IPath,boolean[])}.
 * @throws CoreException
 * @throws PersistenceException
 * @throws LoginException
 */
@Test public void testCreate() throws PersistenceException, CoreException, LoginException {
  repositoryFactory.logOnProject(sampleProject);
  Property property=PropertiesFactory.eINSTANCE.createProperty();
  property.setAuthor(sampleProject.getAuthor());
  property.setVersion(VersionUtils.DEFAULT_VERSION);
  property.setLabel("String_Node_Str");
  property.setDisplayName("String_Node_Str");
  property.setStatusCode("String_Node_Str");
  property.setId(repositoryFactory.getNextId());
  ProcessItem processItem=PropertiesFactory.eINSTANCE.createProcessItem();
  processItem.setProperty(property);
  ProcessType process=TalendFileFactory.eINSTANCE.createProcessType();
  processItem.setProcess(process);
  assertNull(processItem.eResource());
  repositoryFactory.create(sampleProject,processItem,new Path("String_Node_Str"),false);
  assertNotNull(processItem.eResource());
  IProject project=ResourceUtils.getProject(sampleProject.getTechnicalLabel());
  checkFileExists(project,ERepositoryObjectType.PROCESS,"String_Node_Str","String_Node_Str",VersionUtils.DEFAULT_VERSION);
  repositoryFactory.deleteObjectPhysical(sampleProject,new RepositoryObject(property),false);
  checkFileNotExists(project,ERepositoryObjectType.PROCESS,"String_Node_Str","String_Node_Str",VersionUtils.DEFAULT_VERSION);
}