URL url = getClass().getClassLoader().getResource("subscription/subscribe.xml");
File path = new File(new URI(url.toString()));
path = path.getParentFile();
wsnComponent.getServiceUnitManager().deploy("subscription", path.getAbsolutePath());
ActivationSpec consumer = new ActivationSpec();
consumer.setService(new QName("http://www.consumer.org", "service"));
consumer.setEndpoint("endpoint");
Receiver receiver = new ReceiverComponent();
consumer.setComponent(receiver);
jbi.activateComponent(consumer);
wsnComponent.getServiceUnitManager().start("subscription");
wsnBroker.notify("myTopic", parse("<hello>world</hello>"));