muleContext.start();
JdbcConnector connector = new JdbcConnector(muleContext);
connector.setQueryRunner(new TestQueryRunner());
connector.setResultSetHandler(new TestResultSetHandler());
connector.setDataSource(new TestDataSource());
muleContext.getRegistry().registerConnector(connector);
InboundEndpoint ep = muleContext.getEndpointFactory().getInboundEndpoint(
"jdbc://select * from test");
ep.request(0);