handlerPipeline = new HandlerPipeline(phases);
handlerPipeline.addHandler(new DispatchServiceHandler());
handlerPipeline.addHandler(new LocateBindingHandler());
handlerPipeline.addHandler(new SoapBodyHandler());
List handlers = handlerPipeline.getPhaseHandlers(Phase.DISPATCH).getHandlers();
assertTrue(handlers.get(0) instanceof LocateBindingHandler);
assertTrue(handlers.get(1) instanceof SoapBodyHandler);