assertEquals("Bye World", out);
// END SNIPPET: e1
}
protected RouteBuilder createRouteBuilder() throws Exception {
return new RouteBuilder() {
public void configure() throws Exception {
// START SNIPPET: e2
from("mina2:tcp://127.0.0.1:" + getPort() + "?sync=true&codec=#hl7codec")
.process(new Processor() {
public void process(Exchange exchange) throws Exception {