stompConnection = new StompConnection();
stompConnection.open("localhost", 61614);
// Creating a temp queue
stompConnection.sendFrame("CONNECT\n" + "login: system\n" + "passcode: manager\n\n" + Stomp.NULL);
StompFrame frame = stompConnection.receive();
assertTrue(frame.toString().startsWith("CONNECTED"));
stompConnection.subscribe("/temp-queue/meaningless", "auto");
stompConnection.send("/temp-queue/meaningless", "Hello World");
frame = stompConnection.receive(3000);
assertEquals("Hello World", frame.getBody());
Thread.sleep(1000);
assertEquals("Destination", 1, brokers.get("BrokerA").broker.getAdminView().getTemporaryQueues().length);
assertEquals("Destination", 1, brokers.get("BrokerB").broker.getAdminView().getTemporaryQueues().length);