Bug 296356 We shouldn't create more than one e4 OSGi context per BundleContext
tests/org.eclipse.e4.ui.tests/src/org/eclipse/e4/ui/tests/workbench/RenderingTestCase.java
import org.eclipse.swt.widgets.Widget;
/**
 * This is the base class for tests involving the interactions between the UI
 * Model and the SWT Renderer. It is optimized to reduce the overhead
 * <p>
 * It provides various utility methods but also enforces automatic tests to
 * ensure that all models rendered through it conform to the expected structural
 * result:
 * <ol>
 * <li>All visible UI Model elements result in a widget</li>
 * <li>The UI Model element and its SWT Widget are correctly 'bound'</li>
 * <li>The correct SWT widget is created for a given UI Model element</li>
 * <ul>
 * <li>MWindow -> Shell</li>
 * <li>MSashForm -> SashForm</li>
 * <li>MStack -> CTabFol2der</li>
 * <li>MContributedPart -> Composite</li>
 * </ul>
 * <li>The name of an MItem is correctly set in the resulting SWT widget</li>
 * <li>The Image of an MItem is correctly set in the resulting SWT widget</li>
 * <li>The Tooltip Text of an MItem is correctly set in the resulting SWT widget
 * </li>
 * </ol>
 * </p>
 */
public class RenderingTestCase extends TestCase {
	
	protected static IContributionFactory contributionFactory = new ReflectionContributionFactory(
			RegistryFactory.getRegistry());
	protected static IEclipseContext serviceContext = EclipseContextFactory