clientConfig.setWireFormatType(new MetamorphosisWireFormatType());
final RemotingClient remotingClient = RemotingFactory.connect(clientConfig);
remotingClient.connect(serverUrl);
remotingClient.awaitReadyInterrupt(serverUrl);
assertTrue(remotingClient.isConnected(serverUrl));
remotingClient.stop();
this.broker.stop();
// stop twice,no problem
this.broker.stop();
}