}
public void testTransportForwardReference()
throws Exception
{
TargetedChain transportOne =
(TargetedChain)server.getTransport("transport.one");
assertNotNull("transport.one should be non-null!", transportOne);
Chain transportOne_responseFlow =
(Chain)transportOne.getResponseHandler();
assertNotNull("transport.two/responseFlow should be non-null!",
transportOne_responseFlow);
Handler transportOne_responseFlow_handlers[] =
transportOne_responseFlow.getHandlers();
assertNotNull("transport.one/responseFlow/handlers should be non-null!",
transportOne_responseFlow_handlers);
assertTrue("transport.one should have exactly 1 handler!",
(1 == transportOne_responseFlow_handlers.length));
Handler transportOne_responseFlow_handler =
transportOne_responseFlow_handlers[0];
assertNotNull("transport.one's handler should be non-null!",
transportOne_responseFlow_handler);
assertTrue("transport.one's handler should be a URLMapper!",
(transportOne_responseFlow_handler instanceof
org.apache.axis.handlers.http.URLMapper));
Handler transportOne_handler_byName =
server.getHandler("ForwardReference");
assertTrue("transport.one's 'ForwardReference' should be same as directly accessed 'BR'!",
(transportOne_responseFlow_handler ==
transportOne_handler_byName));
TargetedChain transportTwo =
(TargetedChain)server.getTransport("transport.two");
assertNotNull("transport.two should be non-null!", transportTwo);
Chain transportTwo_requestFlow = (Chain) transportTwo.getRequestHandler();
assertNotNull("transport.two/requestFlow should be non-null!",
transportTwo_requestFlow);
Handler transportTwo_requestFlow_handlers[] =
transportTwo_requestFlow.getHandlers();