@Override
 protected void tearDown() throws Exception {
   if (frame != null) {
     frame.dispose();
     frame = null;
   }
   super.tearDown();
 }
 @Override
 protected void setUp() throws Exception {
   super.setUp();
   frame = new JFrame();
 }