protected void assertRaisesNavigationException(IE ie, String nav) throws Exception {
   try {
     ie.goTo(nav);
     failNavigationException();
   } catch (NavigationException e1) {
   }
 }
 protected static void initIEForTesting() throws Exception {
   // perform the "global" set up logic
   IE throwAway = new IE();
   throwAway.start();
   Thread.sleep(1000); // this is so the proxy popup get stuck on the throw away browser
   ie = new IE();
   ie.start();
   ie.bringToFront();
   // perform the "global" tear down logic
   //        NativeResourceCollector nrc = NativeResourceCollector.getInstance();
   //        nrc.addShutdownAction(new Thread(new Runnable() {
   //            public void run() {
   //                try {
   //                    ie.close();
   //                } catch (Exception e) {
   //                    e.printStackTrace();
   //                }
   //            }
   //        }));
 }
 protected void setUp() throws Exception {
   ie.bringToFront();
 }