### Question:
DefaultJdbcComponent implements IJdbcComponent { @Override public IJdbcClient create(DataSource ds) { return new DefaultJdbcClient(ds); } DefaultJdbcComponent(); @Override synchronized IJdbcClient createShared(String dsName, JdbcOptionsBean config); @Override IJdbcClient createStandalone(JdbcOptionsBean config); @Override IJdbcClient create(DataSource ds);  }### Answer:
@Test public void testDataSource() throws Throwable { DefaultJdbcComponent component = new DefaultJdbcComponent(); BasicDataSource ds = new BasicDataSource(); ds.setDriverClassName(Driver.class.getName()); ds.setUsername("sa"); ds.setPassword(""); ds.setUrl("jdbc:h2:mem:testDataSource;DB_CLOSE_DELAY=-1"); try { IJdbcClient client = component.create(ds); doAllTests(client); } finally { try { ds.close(); } catch (SQLException e) { e.printStackTrace(); } } }