System.out.println("Session is open (should not be)? " + gateway.isConnected(hostPort));
}
public void testSubscription() throws Exception {
SubscribeMessage message = new SubscribeMessage("destination", "subscription");
message.getHeader().setAck(Ack.clientIndividual);
gateway.broadcastMessage(message);
synchronized (waiter) {
waiter.wait();
}
}