Program: 147596
Project: 147596
Buggy source:
@Test public void testCreateFolderViewObject() throws Exception {
  boolean isSystem=false;
  String folderName="String_Node_Str";
  PowerMockito.mockStatic(ProjectManager.class);
  ProjectManager mockProjectManager=mock(ProjectManager.class);
  Project mockProject=mock(Project.class);
  IProject mockIProject=mock(IProject.class);
  when(ProjectManager.getInstance()).thenReturn(mockProjectManager);
  when(ProjectManager.getInstance().getCurrentProject()).thenReturn(mockProject);
  IFolder mockFolder=mock(IFolder.class);
  PowerMockito.mockStatic(ResourceModelUtils.class);
  when(ResourceModelUtils.getProject(mockProject)).thenReturn(mockIProject);
  when(mockIProject.getFolder(Mockito.anyString())).thenReturn(mockFolder);
  when(mockFolder.exists()).thenReturn(false);
  PowerMockito.mockStatic(ResourceUtils.class);
  PowerMockito.doNothing().when(ResourceUtils.class,"String_Node_Str",mockFolder);
  ItemState mockItemState=mock(ItemState.class);
  when(mockItemState.getPath()).thenReturn("String_Node_Str");
  Item mockParentItem=mock(Item.class);
  when(mockParentItem.getState()).thenReturn(mockItemState);
  String processFolder="String_Node_Str";
  PowerMockito.mockStatic(ERepositoryObjectType.class);
  ERepositoryObjectType mockType=mock(ERepositoryObjectType.class);
  when(mockType.getType()).thenReturn("String_Node_Str");
  when(ERepositoryObjectType.getFolderName(mockType)).thenReturn(processFolder);
  IRepositoryViewObject folderViewObject=RepositoryResourceUtil.createFolderViewObject(mockType,folderName,mockParentItem,isSystem);
  assertNotNull(folderViewObject);
  PowerMockito.verifyStatic(Mockito.times(1));
  ResourceUtils.createFolder(mockFolder);
}

Fixed version (ground truth):
@Test public void testCreateFolderViewObject() throws Exception {
  boolean isSystem=false;
  String folderName="String_Node_Str";
  PowerMockito.mockStatic(ProjectManager.class);
  ProjectManager mockProjectManager=mock(ProjectManager.class);
  Project mockProject=mock(Project.class);
  IProject mockIProject=mock(IProject.class);
  when(ProjectManager.getInstance()).thenReturn(mockProjectManager);
  when(ProjectManager.getInstance().getCurrentProject()).thenReturn(mockProject);
  IFolder mockFolder=mock(IFolder.class);
  PowerMockito.mockStatic(ResourceUtils.class);
  when(ResourceUtils.getProject(mockProject)).thenReturn(mockIProject);
  when(mockIProject.getFolder(Mockito.anyString())).thenReturn(mockFolder);
  when(mockFolder.exists()).thenReturn(false);
  PowerMockito.doNothing().when(ResourceUtils.class,"String_Node_Str",mockFolder);
  ItemState mockItemState=mock(ItemState.class);
  when(mockItemState.getPath()).thenReturn("String_Node_Str");
  Item mockParentItem=mock(Item.class);
  when(mockParentItem.getState()).thenReturn(mockItemState);
  String processFolder="String_Node_Str";
  PowerMockito.mockStatic(ERepositoryObjectType.class);
  ERepositoryObjectType mockType=mock(ERepositoryObjectType.class);
  when(mockType.getType()).thenReturn("String_Node_Str");
  when(ERepositoryObjectType.getFolderName(mockType)).thenReturn(processFolder);
  PowerMockito.mockStatic(ProxyRepositoryFactory.class);
  ProxyRepositoryFactory proxyRepositoryFactory=mock(ProxyRepositoryFactory.class);
  when(ProxyRepositoryFactory.getInstance()).thenReturn(proxyRepositoryFactory);
  Folder mockTalendFolder=mock(Folder.class);
  when(proxyRepositoryFactory.createFolder(any(Project.class),any(ERepositoryObjectType.class),any(IPath.class),anyString())).thenReturn(mockTalendFolder);
  IRepositoryViewObject folderViewObject=RepositoryResourceUtil.createFolderViewObject(mockType,folderName,mockParentItem,isSystem);
  assertNotNull(folderViewObject);
  verify(proxyRepositoryFactory,times(1)).createFolder(any(Project.class),any(ERepositoryObjectType.class),any(IPath.class),anyString());
}