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
private IPackageFragment fInternalPack4;
	private IPackageFragment fInternalPack5;
	private IPackageFragment fInternalPack10;
	private IPackageFragment fInternalPack6;
	private IPackageFragment fPack102;
	private boolean fEnableAutoBuildAfterTesting;
	
	public PackagesViewDeltaTests(String name) {
		super(name);
	}
	
	
	
	public void testRemoveTopLevelFragmentNotLogicalPackage() throws Exception {
		
		LogicalPackage cp3= new LogicalPackage(fPack31);
		cp3.add(fPack32);
		cp3.add(fInternalPack3);
		
		fMyPart.fViewer.setInput(fJProject);
		fProvider.getChildren(cp3);
		fMyPart.clear();
		IElementChangedListener listener= (IElementChangedListener) fProvider;
		IJavaElementDelta delta= new TestDelta(IJavaElementDelta.REMOVED, fPack12);
		listener.elementChanged(new ElementChangedEvent(delta, ElementChangedEvent.POST_CHANGE));
		
		pushDisplay();
		assertTrue("Remove happened", fMyPart.hasRemoveHappened()); 
		assertTrue("Correct package removed", fMyPart.getRemovedObject().contains(fPack12)); 
	}