@Test
    public void testShared() throws Throwable {
        DefaultJdbcComponent component = new DefaultJdbcComponent();
        JdbcOptionsBean config = new JdbcOptionsBean();
        config.setAutoCommit(true);
        config.setJdbcUrl("jdbc:h2:mem:testShared;DB_CLOSE_DELAY=-1");
        config.setUsername("sa");
        config.setPassword("");
        IJdbcClient client = component.createShared("sharedDS", config);
        doAllTests(client);
    }
Full test for the default JDBC component.

@author eric.wittmann@redhat.com
gateway/engine/core/src/test/java/io/apiman/gateway/engine/impl/DefaultJdbcComponentTest.java