////////////////////////////////////////////////////////////////////////////
 //
 // Life cycle
 //
 ////////////////////////////////////////////////////////////////////////////
 @Override
 protected void setUp() throws Exception {
   super.setUp();
   configureTestPreferences(TOOLKIT);
   // by default use shared GWTState
   UiBinderContext.setUseSharedGWTState(true);
 }
 @Override
 protected void disposeLastModel() throws Exception {
   super.disposeLastModel();
   // dispose GWTState
   if (m_lastState != null && !m_lastState.isShared()) {
     m_lastState.dispose();
   }
 }
 @Override
 protected void tearDown() throws Exception {
   configureDefaultPreferences(TOOLKIT);
   super.tearDown();
   GwtModelTest.assertGWTStateDisposed();
 }