Bug 105034 [WorkbenchParts] IWorkbenchPage#hideView(IViewPart) does not always dispose of the view any more
org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/browsing/PackagesViewDeltaTests.java
cp3.add(fInternalPack3);
		ICompilationUnit cu= fPack81.createCompilationUnit("Object.java", "", true, null); 
		
		fMyPart.fViewer.setInput(fJProject);
		fProvider.getChildren(cp3);
		fMyPart.clear();
		IElementChangedListener listener= (IElementChangedListener) fProvider;
		IJavaElementDelta delta= TestDelta.createCUDelta(new ICompilationUnit[] { cu }, fPack81, IJavaElementDelta.ADDED);
		listener.elementChanged(new ElementChangedEvent(delta, ElementChangedEvent.POST_CHANGE));
		
		pushDisplay();
		
		assertTrue("Refresh happened", fMyPart.hasRefreshHappened()); 
		assertTrue("Correct package refreshed", fMyPart.getRefreshedObject().contains(cp3)); 
		assertEquals("Correct number of refreshes", 1, fMyPart.getRefreshedObject().size()); 
	}
	
	public void testRemoveCUFromFragmentNotLogicalPackage() throws Exception {
		
		LogicalPackage cp3= new LogicalPackage(fPack31);
		cp3.add(fPack32);
		cp3.add(fInternalPack3);
		
		fMyPart.fViewer.setInput(fJProject);
		fProvider.getChildren(cp3);
		ICompilationUnit cu= fPack81.createCompilationUnit("Object.java", "", true, null); 
		
		fMyPart.fViewer.setInput(fJProject);
		fMyPart.fViewer.reveal(fPack81);