public void testUpdatePerson() throws Exception {
PhaseInterceptorChain phaseIn = new PhaseInterceptorChain();
phaseIn.add(binding.getInterceptors(Phase.ServerIn));
Message message = new MessageImpl();
message.put(Binding.class, binding);
message.put(MessageExchangeFactory.class, new MockExchangeFactory());
message.getTransportHeaders().put(HttpConstants.REQUEST_URI, "http://localhost:8192/person/312");
message.getTransportHeaders().put(HttpConstants.REQUEST_METHOD, HttpConstants.METHOD_POST);
message.setContent(InputStream.class, new ByteArrayInputStream("ssn=321&name=Nodet".getBytes()));
phaseIn.doIntercept(message);
MessageExchange me = message.getContent(MessageExchange.class);
NormalizedMessage nm = message.getContent(NormalizedMessage.class);
Document doc = DomUtil.parse(nm.getContent());
ByteArrayOutputStream baos = new ByteArrayOutputStream();
DomUtil.getTransformerFactory().newTransformer().transform(nm.getContent(), new StreamResult(baos));
log.info(baos.toString());