Object body = exchange.getIn().getBody();
assertNotNull("Should have a body!", body);
}
};
Pipeline pipeline = new Pipeline(Collections.singletonList(myProcessor));
FileExchange exchange = new FileExchange(context, pattern, file);
pipeline.process(exchange.copy());
}