code:     public void testHttpSendStringAndReceiveJavaBody() throws Exception {
          context.addRoutes(new RouteBuilder() {
              @Override
              public void configure() throws Exception {
                  from("jetty:http://localhost:{{port}}/myapp/myservice")
                      .process(new Processor() {
                          public void process(Exchange exchange) throws Exception {
                              String body = exchange.getIn().getBody(String.class);
                              assertNotNull(body);
                              assertEquals("Hello World", body);
  
                              MyCoolBean reply = new MyCoolBean(456, "Camel rocks");
                              exchange.getOut().setBody(reply);
                              exchange.getOut().setHeader(Exchange.CONTENT_TYPE, HttpConstants.CONTENT_TYPE_JAVA_SERIALIZED_OBJECT);
                          }
                      });
              }
          });
          context.start();
  
          MyCoolBean reply = template.requestBody("http://localhost:{{port}}/myapp/myservice", "Hello World", MyCoolBean.class);
  
          assertEquals(456, reply.getId());
          assertEquals("Camel rocks", reply.getName());
      }
  
  