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/PackagesViewContentProviderTests2.java
IElementChangedListener listener= (IElementChangedListener) fProvider;
		IJavaElementDelta delta= new TestDelta(IJavaElementDelta.ADDED, test);
		listener.elementChanged(new ElementChangedEvent(delta, ElementChangedEvent.POST_CHANGE));
		
		pushDisplay();
		
		assertTrue("Add happened", fMyPart.hasAddHappened()); 
		assertTrue("Correct package added", fMyPart.getAddedObject().contains(test)); 
	}
	public void testAddPackageToCreateLogicalPackage() throws Exception {
		
		fProvider.getElements(fJProject2);
		
		
    	IPackageFragment pack11= fRoot1.createPackageFragment("pack1", true, null);
		
		LogicalPackage lp1= new LogicalPackage(fPack12);
		lp1.add(pack11);
		fMyPart.clear();
		
		IElementChangedListener listener= (IElementChangedListener) fProvider;
		IJavaElementDelta delta= new TestDelta(IJavaElementDelta.ADDED, pack11);
		listener.elementChanged(new ElementChangedEvent(delta, ElementChangedEvent.POST_CHANGE));
		
		pushDisplay();
		
		
		assertTrue("Remove and add happened", fMyPart.hasRemoveHappened() && fMyPart.hasAddHappened()); 
		Object addedObject= fMyPart.getAddedObject().get(0);
		Object removedObject= fMyPart.getRemovedObject().get(0);