@@ -0,0 +1,1499 @@
+package com.boundary.sdk.service;%0A%0Aimport static org.junit.Assert.*;%0A%0Aimport org.junit.After;%0Aimport org.junit.AfterClass;%0Aimport org.junit.Before;%0Aimport org.junit.BeforeClass;%0Aimport org.junit.Test;%0Aimport org.apache.camel.component.mock.MockEndpoint;%0Aimport org.apache.camel.test.spring.CamelSpringTestSupport;%0Aimport org.springframework.context.support.AbstractApplicationContext;%0Aimport org.springframework.context.support.ClassPathXmlApplicationContext;%0A%0A/**%0A * @author davidg%0A *%0A */%0Apublic class ServiceDatabaseTest extends CamelSpringTestSupport  %7B%0A%0A%09/**%0A%09 * @throws java.lang.Exception%0A%09 */%0A%09@BeforeClass%0A%09public static void setUpBeforeClass() throws Exception %7B%0A%09%7D%0A%0A%09/**%0A%09 * @throws java.lang.Exception%0A%09 */%0A%09@AfterClass%0A%09public static void tearDownAfterClass() throws Exception %7B%0A%09%7D%0A%0A%09/**%0A%09 * @throws java.lang.Exception%0A%09 */%0A%09@Before%0A%09public void setUp() throws Exception %7B%0A%09%09super.setUp();%0A%09%7D%0A%0A%09/**%0A%09 * @throws java.lang.Exception%0A%09 */%0A%09@After%0A%09public void tearDown() throws Exception %7B%0A%09%09super.tearDown();%0A%09%7D%0A%09%09%0A%09@Test%0A%09public void testAggregate() throws InterruptedException %7B%0A%09%09MockEndpoint endPoint = getMockEndpoint(%22mock:query-out%22);%0A%09%09endPoint.expectedMinimumMessageCount(1);%0A%09%09String sql = %22select count(*) from t_service;%22;%0A%09%09%0A%09%09template.sendBody(%22direct:query-in%22,sql);%0A%09%09%0A%09%09endPoint.assertIsSatisfied();%0A%09%7D%0A%09%0A%09@Override%0A%09protected AbstractApplicationContext createApplicationContext() %7B%0A%09%09return new ClassPathXmlApplicationContext(%22META-INF/spring/camel-context.xml%22);%0A%09%7D%0A%0A%7D%0A

Add stub test to check jdbc component testing