Bug 166600 [DataBinding] Refactor tests to be in the correct packages
tests/org.eclipse.jface.tests.databinding/src/org/eclipse/jface/tests/databinding/AbstractDefaultRealmTestCase.java
private Realm previousRealm;
	/**
	 * Sets the default realm to be the realm for the default display.
	 * 
	 * @see junit.framework.TestCase#setUp()
	 */
	protected void setUp() throws Exception {
		super.setUp();
		previousRealm = Realm.getDefault();
		Display display = Display.getCurrent() != null
				&& !Display.getCurrent().isDisposed() ? Display.getCurrent()
				: Display.getDefault();
		RealmTester.setDefault(SWTObservables.getRealm(display));
	}
	/**
	 * Removes the default realm.
	 */
	protected void tearDown() throws Exception {
		super.tearDown();
		RealmTester.setDefault(previousRealm);
	}
}