public class MainTest extends TestCase {
private static final transient Log LOG = LogFactory.getLog(MainTest.class);
public void testMain() throws Exception {
// lets make a simple route
SimpleRouteBuilder builder = new SimpleRouteBuilder();
builder.setFromUri("file://src/test/data?noop=true");
builder.setBeanClass("org.apache.camel.spring.example.MyProcessor");
builder.setToUri("mock:results");
Main main = new Main();
main.addRouteBuilder(builder);
main.start();