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/packageview/ContentProviderTests3.java
}
	
	public void testGetParentMidLevelFragment() throws Exception{
		Object expectedParent= fPack3;
		Object parent= fProvider.getParent(fPack4);
		assertTrue("Wrong parent found for a NON top level PackageFragment with folding", expectedParent.equals(parent));
	}
	
	public void testDeleteBottomLevelFragmentFolding() throws Exception {
		
		IElementChangedListener listener= (IElementChangedListener) fProvider;
		IJavaElementDelta delta= TestDelta.createDelta(fPack4, IJavaElementDelta.REMOVED);
		listener.elementChanged(new ElementChangedEvent(delta, ElementChangedEvent.POST_CHANGE));
		
		while(fMyPart.getTreeViewer().getControl().getDisplay().readAndDispatch())
		assertTrue("Refresh happened", fMyPart.hasRefreshHappened()); 
		assertTrue("Correct Refresh", fMyPart.wasObjectRefreshed(fRoot1)); 
		assertTrue("Single refresh", fMyPart.getRefreshedObject().size() == 1); 
	}
	public void testAddBottomLevelFragmentFolding() throws Exception {
		IPackageFragment test= fRoot1.createPackageFragment("test", true, null); 
		
		IElementChangedListener listener= (IElementChangedListener) fProvider;
		IJavaElementDelta delta= TestDelta.createDelta(test, IJavaElementDelta.ADDED);
		listener.elementChanged(new ElementChangedEvent(delta, ElementChangedEvent.POST_CHANGE));
		
		while(fMyPart.getTreeViewer().getControl().getDisplay().readAndDispatch()) {
		}
		assertTrue("Refresh happened", fMyPart.hasRefreshHappened());