when(mockLocalPath.getPath()).thenReturn(CONFLICT_BOTH.getLocalPath());
FilePath mockServerPath = mock(FilePath.class);
when(mockServerPath.getPath()).thenReturn(((RenameConflict) CONFLICT_BOTH).getServerPath());
VirtualFile mockVirtualFile = mock(VirtualFile.class);
when(VcsUtil.getVirtualFileWithRefresh(any(File.class))).thenReturn(mockVirtualFile);
<BUG>when(mockNameMerger.mergeName((RenameConflict) CONFLICT_BOTH, mockProject)).thenReturn(selectedName);
when(VersionControlPath.getFilePath(eq(((RenameConflict) CONFLICT_BOTH).getServerPath()), anyBoolean())).thenReturn(mockServerPath);</BUG>
when(VersionControlPath.getFilePath(CONFLICT_BOTH.getLocalPath(), false)).thenReturn(mockLocalPath);
when(mockContentMerger.mergeContent(any(ContentTriplet.class), eq(mockProject), eq(mockVirtualFile), isNull(VcsRevisionNumber.class))).thenReturn(true);
helper.acceptMerge(CONFLICT_BOTH, mockResolveConflictsModel);

when(mockLocalPath.getPath()).thenReturn(CONFLICT_BOTH.getLocalPath());
FilePath mockServerPath = mock(FilePath.class);
when(mockServerPath.getPath()).thenReturn(((RenameConflict) CONFLICT_BOTH).getServerPath());
VirtualFile mockVirtualFile = mock(VirtualFile.class);
when(VcsUtil.getVirtualFileWithRefresh(any(File.class))).thenReturn(mockVirtualFile);
when(mockNameMerger.mergeName(anyString(), anyString(), Matchers.eq(mockProject))).thenReturn(selectedName);
when(VersionControlPath.getFilePath(eq(((RenameConflict) CONFLICT_BOTH).getServerPath()), anyBoolean())).thenReturn(mockServerPath);
when(VersionControlPath.getFilePath(CONFLICT_BOTH.getLocalPath(), false)).thenReturn(mockLocalPath);
when(mockContentMerger.mergeContent(any(ContentTriplet.class), eq(mockProject), eq(mockVirtualFile), isNull(VcsRevisionNumber.class))).thenReturn(true);
helper.acceptMerge(CONFLICT_BOTH, mockResolveConflictsModel);
