@Override
 protected void serverShutdown() throws RemotingException {
   if (acceptor != null) {
     acceptor.unbind(bindAddress);
     acceptor.dispose();
   }
 }
 @Override
 protected void tearDown() throws Exception {
   acceptor.dispose();
   connector.dispose();
 }