Program: 47551
Project: 47551
Buggy source:
public void testDoImport() throws Exception {
  ZipInputStream zis=null;
  try {
    zis=getZipInputStream("String_Node_Str");
    final ZipSolutionRepositoryImportSource importSource=new ZipSolutionRepositoryImportSource(zis,"String_Node_Str");
    assertEquals("String_Node_Str",65,importSource.getCount());
    final DefaultImportHandler handler=new DefaultImportHandler(repository);
    handler.doImport(importSource.getFiles(),"String_Node_Str","String_Node_Str",true);
    assertEquals("String_Node_Str",20,importSource.getCount());
    assertNull(repository.getFile("String_Node_Str"));
    final RepositoryFile urlFile=repository.getFile("String_Node_Str");
    assertNotNull(urlFile);
    assertFalse(urlFile.isHidden());
    final RepositoryFile xactionFile=repository.getFile("String_Node_Str");
    assertNotNull(xactionFile);
    assertFalse(xactionFile.isHidden());
    final RepositoryFile folder=repository.getFile("String_Node_Str");
    assertNotNull(folder);
    assertTrue(folder.isFolder());
    assertFalse(folder.isHidden());
    final RepositoryFile xmlFile=repository.getFile("String_Node_Str");
    assertNotNull(xmlFile);
    final RepositoryFile prptWithSpaces=repository.getFile("String_Node_Str");
    assertNotNull(prptWithSpaces);
  }
  finally {
    IOUtils.closeQuietly(zis);
  }
  zis=null;
  try {
    zis=getZipInputStream("String_Node_Str");
    final ZipSolutionRepositoryImportSource importSource=new ZipSolutionRepositoryImportSource(zis,"String_Node_Str");
    assertEquals("String_Node_Str",65,importSource.getCount());
    final DefaultImportHandler handler=new DefaultImportHandler(repository.unmodifiable());
    handler.doImport(importSource.getFiles(),"String_Node_Str","String_Node_Str",false);
    assertEquals("String_Node_Str",20,importSource.getCount());
  }
  finally {
    IOUtils.closeQuietly(zis);
  }
  zis=null;
  try {
    zis=getZipInputStream("String_Node_Str");
    final ZipSolutionRepositoryImportSource importSource=new ZipSolutionRepositoryImportSource(zis,"String_Node_Str");
    assertEquals("String_Node_Str",65,importSource.getCount());
    final DefaultImportHandler handler=new DefaultImportHandler(repository);
    handler.doImport(importSource.getFiles(),"String_Node_Str","String_Node_Str",true);
    assertEquals("String_Node_Str",20,importSource.getCount());
  }
  finally {
    IOUtils.closeQuietly(zis);
  }
}

Fixed version (ground truth):
public void testDoImport() throws Exception {
  ZipInputStream zis=null;
  try {
    zis=getZipInputStream("String_Node_Str");
    final ZipSolutionRepositoryImportSource importSource=new ZipSolutionRepositoryImportSource(zis,"String_Node_Str");
    assertEquals("String_Node_Str",65,importSource.getCount());
    final DefaultImportHandler handler=new DefaultImportHandler(repository);
    handler.doImport(importSource.getFiles(),"String_Node_Str","String_Node_Str",true);
    assertEquals("String_Node_Str" + FINAL_COUNT + "String_Node_Str",FINAL_COUNT,importSource.getCount());
    assertNull(repository.getFile("String_Node_Str"));
    final RepositoryFile urlFile=repository.getFile("String_Node_Str");
    assertNotNull(urlFile);
    assertFalse(urlFile.isHidden());
    final RepositoryFile xactionFile=repository.getFile("String_Node_Str");
    assertNotNull(xactionFile);
    assertFalse(xactionFile.isHidden());
    final RepositoryFile folder=repository.getFile("String_Node_Str");
    assertNotNull(folder);
    assertTrue(folder.isFolder());
    assertFalse(folder.isHidden());
    final RepositoryFile xmlFile=repository.getFile("String_Node_Str");
    assertNotNull(xmlFile);
    final RepositoryFile prptWithSpaces=repository.getFile("String_Node_Str");
    assertNotNull(prptWithSpaces);
    assertNull(repository.getFile("String_Node_Str"));
    assertNull(repository.getFile("String_Node_Str"));
  }
  finally {
    IOUtils.closeQuietly(zis);
  }
  zis=null;
  try {
    zis=getZipInputStream("String_Node_Str");
    final ZipSolutionRepositoryImportSource importSource=new ZipSolutionRepositoryImportSource(zis,"String_Node_Str");
    assertEquals("String_Node_Str",65,importSource.getCount());
    final DefaultImportHandler handler=new DefaultImportHandler(repository.unmodifiable());
    handler.doImport(importSource.getFiles(),"String_Node_Str","String_Node_Str",false);
    assertEquals("String_Node_Str" + FINAL_COUNT + "String_Node_Str",FINAL_COUNT,importSource.getCount());
  }
  finally {
    IOUtils.closeQuietly(zis);
  }
  zis=null;
  try {
    zis=getZipInputStream("String_Node_Str");
    final ZipSolutionRepositoryImportSource importSource=new ZipSolutionRepositoryImportSource(zis,"String_Node_Str");
    assertEquals("String_Node_Str",65,importSource.getCount());
    final DefaultImportHandler handler=new DefaultImportHandler(repository);
    handler.doImport(importSource.getFiles(),"String_Node_Str","String_Node_Str",true);
    assertEquals("String_Node_Str" + FINAL_COUNT + "String_Node_Str",FINAL_COUNT,importSource.getCount());
  }
  finally {
    IOUtils.closeQuietly(zis);
  }
}