concept public void configure in category camel

appears as: public void configure
Camel in Action

This is an excerpt from Manning's book Camel in Action.

CamelContext context = new DefaultCamelContext(); context.addRoutes(new RouteBuilder() { public void configure() throws Exception { ... } });
Listing 9.1 A first unit test using the Camel Test Kit
public class FirstTest extends CamelTestSupport { @Override protected RouteBuilder createRouteBuilder() throws Exception { return new RouteBuilder() { public void configure() throws Exception {     #1 from("file://target/inbox") .to("file://target/outbox"); } }; } @Test public void testMoveFile() throws Exception { template.sendBodyAndHeader("file://target/inbox", "Hello World", Exchange.FILE_NAME, "hello.txt");     #2 Thread.sleep(2000); File target = new File("target/outbox/hello.txt"); assertTrue("File not moved", target.exists());     #3 } } #1 Defines route to test #2 Creates hello.txt file #3 Verifies file is moved