protected RouteBuilder createRouteBuilder() throws Exception {
return new RouteBuilder() {
public void configure() throws Exception {
//context.setTracing(true);
DataFormat syslogDataFormat = new Rfc3164SyslogDataFormat();
// we setup a Syslog listener on a random port.
from("mina:udp://127.0.0.1:" + serverPort).unmarshal(syslogDataFormat).process(new Processor() {
public void process(Exchange ex) {
assertTrue(ex.getIn().getBody() instanceof SyslogMessage);