nmr.getEndpointRegistry().lookup(ServiceHelper.createMap(Endpoint.NAME, "dumy")));
exchange.getIn().setSecuritySubject(subject);
Source source = new StreamSource(new ByteArrayInputStream(
"<message>TestHelloWorld</message>".getBytes()));
exchange.getIn().setBody(source);
observer = new MessageObserver() {
public void onMessage(Message m) {
inMessage = m;
Subject receivedSubject =
(Subject)inMessage.get(NMRTransportFactory.NMR_SECURITY_SUBJECT);
assertNotNull(receivedSubject);