int count = jdbc.queryForInt("select count(*) from books");
assertEquals("Number of books", 1, count);
}
protected RouteBuilder createRouteBuilder() throws Exception {
return new SpringRouteBuilder() {
public void configure() throws Exception {
from("file://target/transacted/okay")
.transacted()
.setBody(constant("Tiger in Action")).beanRef("bookService")
.setBody(constant("Elephant in Action")).beanRef("bookService");