public static NewStrategyAgentWizardFixture create(
     final Shell shell, final IStrategyEngines engines, final StrategyAgentEngine engine)
     throws Exception {
   NewStrategyAgentWizard wizard =
       AbstractUIRunner.syncCall(
           new Callable<NewStrategyAgentWizard>() {
             @Override
             public NewStrategyAgentWizard call() {
               NewStrategyAgentWizard wizard = new NewStrategyAgentWizard(engines, engine);
               WizardDialog dialog = new WizardDialog(shell, wizard);
               dialog.setBlockOnOpen(false);
               dialog.open();
               return wizard;
             }
           });
   return new NewStrategyAgentWizardFixture(wizard);
 }
 @Test
 public void testSeededValues() throws Exception {
   StrategyAgentEngine engine =
       AbstractUIRunner.syncCall(
           new Callable<StrategyAgentEngine>() {
             @Override
             public StrategyAgentEngine call() {
               StrategyAgentEngine engine =
                   StrategyAgentEngineTestUtil.createStrategyAgentEngine(
                       "abc", "xyz", "tcp://abc", "host", 8080);
               engine.setConnectionState(ConnectionState.CONNECTED);
               return engine;
             }
           });
   NewStrategyAgentWizardFixture fixture =
       NewStrategyAgentWizardFixture.create(mShell, mMockService, engine);
   fixture.finish();
   StrategyAgentEngineTestUtil.assertStrategyAgentEngine(
       fixture.waitForClose(), "abc", "xyz", "tcp://abc", "host", 8080, ConnectionState.CONNECTED);
   verify(mMockService).addEngine((StrategyEngine) anyObject());
 }