client.subscribe("/a/channel");
message = (MessageImpl)exchanger.exchange(null,1,TimeUnit.SECONDS);
assertEquals(Bayeux.META_SUBSCRIBE,message.getChannel());
assertTrue(message.isSuccessful());
message.decRef();
client.publish("/a/channel","data","id");
message = (MessageImpl)exchanger.exchange(null,1,TimeUnit.SECONDS);
assertEquals("data",message.getData());
message.decRef();