public void testZmqDealer() throws Exception {
final ZMQ.Context context = ZMQ.context(1);
final ZMQ.Socket socket = context.socket(ZMQ.DEALER);
socket.connect("tcp://" + serverAddress.getHostName() + ":" + serverAddress.getPort());
final ZMsg request = ZMsg.newStringMsg("envelope", "", "hello", "world");
request.send(socket, false);
final ZMTPIncomingMessage receivedRequest = incomingMessages.take();
final ZMTPMessage receivedMessage = receivedRequest.getMessage();
receivedRequest.getSession().getChannel().write(receivedMessage);