protected void tearDown() throws Exception {
   for (Iterator<StubConnection> iter = connections.iterator(); iter.hasNext(); ) {
     StubConnection connection = iter.next();
     connection.stop();
     iter.remove();
   }
   if (connector != null) {
     connector.stop();
   }
   super.tearDown();
 }
 protected void setUp() throws Exception {
   super.setUp();
 }