Bug 305703 [Viewers][CommonNavigator] remembered contributions can leak when using filters
tests/org.eclipse.ui.tests.navigator/src/org/eclipse/ui/tests/navigator/FilterTest.java
_navigatorInstanceId = TEST_VIEWER_FILTER;
	}
	
	public void testFilterActivation() throws Exception {
		_contentService.bindExtensions(new String[] { COMMON_NAVIGATOR_RESOURCE_EXT }, false);
		_contentService.getActivationService().activateExtensions(
				new String[] { COMMON_NAVIGATOR_RESOURCE_EXT }, true);
		_viewer.expandAll();
		TreeItem[] items;
		items = _viewer.getTree().getItems();
		assertEquals(3, items.length);
		_contentService.getFilterService().activateFilterIdsAndUpdateViewer(
				new String[] { TEST_FILTER_P1, TEST_FILTER_P2 });
		items = _viewer.getTree().getItems();
		assertEquals(1, items.length);
		assertEquals("Test", items[0].getText());
		
		_contentService.getFilterService().activateFilterIdsAndUpdateViewer(
				new String[] { TEST_FILTER_P1 });
		items = _viewer.getTree().getItems();
		assertEquals(2, items.length);
		assertEquals("p2", items[0].getText());
		_contentService.getFilterService().activateFilterIdsAndUpdateViewer(new String[] {});
		items = _viewer.getTree().getItems();
		assertEquals(3, items.length);
		assertEquals("p1", items[0].getText());
		assertEquals("p2", items[1].getText());
	}
}