Program: 125409
Project: 125409
Buggy source:
/** 
 * Test method for  {@link org.talend.repository.localprovider.model.LocalRepositoryFactory#unloadResources(org.talend.core.model.properties.Property)}.
 * @throws CoreException
 * @throws PersistenceException
 * @throws LoginException
 */
@Test public void testUnloadResourcesProperty() throws PersistenceException, CoreException, LoginException {
  repositoryFactory.logOnProject(sampleProject);
  Property property=PropertiesFactory.eINSTANCE.createProperty();
  property.setAuthor(sampleProject.getAuthor());
  property.setVersion(VersionUtils.DEFAULT_VERSION);
  property.setStatusCode("String_Node_Str");
  property.setLabel("String_Node_Str");
  final String nextId=repositoryFactory.getNextId();
  property.setId(nextId);
  ProcessItem processItem=PropertiesFactory.eINSTANCE.createProcessItem();
  processItem.setProperty(property);
  ProcessType process=TalendFileFactory.eINSTANCE.createProcessType();
  processItem.setProcess(process);
  Property property2=PropertiesFactory.eINSTANCE.createProperty();
  property2.setAuthor(sampleProject.getAuthor());
  property2.setVersion(VersionUtils.DEFAULT_VERSION);
  property2.setStatusCode("String_Node_Str");
  property2.setLabel("String_Node_Str");
  final String nextId2=repositoryFactory.getNextId();
  property2.setId(nextId2);
  ProcessItem processItem2=PropertiesFactory.eINSTANCE.createProcessItem();
  processItem2.setProperty(property2);
  ProcessType process2=TalendFileFactory.eINSTANCE.createProcessType();
  processItem2.setProcess(process2);
  repositoryFactory.create(sampleProject,processItem,new Path("String_Node_Str"),false);
  repositoryFactory.create(sampleProject,processItem2,new Path("String_Node_Str"),false);
  assertNotNull(processItem.eResource());
  assertNotNull(processItem2.eResource());
  repositoryFactory.unloadResources(property2);
  assertNotNull(processItem.eResource());
  assertNull(processItem2.eResource());
  property=repositoryFactory.getUptodateProperty(sampleProject,property);
  repositoryFactory.deleteObjectPhysical(sampleProject,new RepositoryObject(property));
  property2=repositoryFactory.getUptodateProperty(sampleProject,property2);
  repositoryFactory.deleteObjectPhysical(sampleProject,new RepositoryObject(property2));
}

Fixed version (ground truth):
/** 
 * Test method for  {@link org.talend.repository.localprovider.model.LocalRepositoryFactory#unloadResources(org.talend.core.model.properties.Property)}.
 * @throws CoreException
 * @throws PersistenceException
 * @throws LoginException
 */
@Test public void testUnloadResourcesProperty() throws PersistenceException, CoreException, LoginException {
  repositoryFactory.logOnProject(sampleProject);
  Property property=PropertiesFactory.eINSTANCE.createProperty();
  property.setAuthor(sampleProject.getAuthor());
  property.setVersion(VersionUtils.DEFAULT_VERSION);
  property.setStatusCode("String_Node_Str");
  property.setLabel("String_Node_Str");
  final String nextId=repositoryFactory.getNextId();
  property.setId(nextId);
  ProcessItem processItem=PropertiesFactory.eINSTANCE.createProcessItem();
  processItem.setProperty(property);
  ProcessType process=TalendFileFactory.eINSTANCE.createProcessType();
  processItem.setProcess(process);
  Property property2=PropertiesFactory.eINSTANCE.createProperty();
  property2.setAuthor(sampleProject.getAuthor());
  property2.setVersion(VersionUtils.DEFAULT_VERSION);
  property2.setStatusCode("String_Node_Str");
  property2.setLabel("String_Node_Str");
  final String nextId2=repositoryFactory.getNextId();
  property2.setId(nextId2);
  ProcessItem processItem2=PropertiesFactory.eINSTANCE.createProcessItem();
  processItem2.setProperty(property2);
  ProcessType process2=TalendFileFactory.eINSTANCE.createProcessType();
  processItem2.setProcess(process2);
  repositoryFactory.create(sampleProject,processItem,new Path("String_Node_Str"),false);
  repositoryFactory.create(sampleProject,processItem2,new Path("String_Node_Str"),false);
  assertNotNull(processItem.eResource());
  assertNotNull(processItem2.eResource());
  repositoryFactory.unloadResources(property2);
  assertNotNull(processItem.eResource());
  assertNull(processItem2.eResource());
  property=repositoryFactory.getUptodateProperty(sampleProject,property);
  repositoryFactory.deleteObjectPhysical(sampleProject,new RepositoryObject(property),false);
  property2=repositoryFactory.getUptodateProperty(sampleProject,property2);
  repositoryFactory.deleteObjectPhysical(sampleProject,new RepositoryObject(property2),false);
}