outboundLatch.countDown();
}
});
ClientSubscription subscription = builder.start();
client.send(StompMessages.createStompMessage(DESTINATION_QUEUE_ONE, "msg1"));
client.send(StompMessages.createStompMessage(DESTINATION_QUEUE_ONE, "msg2"));
Assert.assertTrue("No latch timeout", outboundLatch.await(10, TimeUnit.SECONDS));
Assert.assertTrue("Contains msg1", outbound.contains("msg1"));
Assert.assertTrue("Contains msg2", outbound.contains("msg2"));