public void checkDs() throws SQLException {
final DataSource ds = persister.getDs();
assertNotNull(ds);
assertThat(ds, instanceOf(DbcpManagedDataSource.class));
final DbcpManagedDataSource castedDs = (DbcpManagedDataSource) ds;
final String driver = castedDs.getDriverClassName();
assertEquals("org.h2.jdbcx.JdbcDataSource", driver);
final String user = castedDs.getUserName();
assertEquals("sa", user);
final String url = castedDs.getUrl();
assertEquals("jdbc:h2:mem:persister", url);
final int initPoolSize = castedDs.getInitialSize();
assertEquals(1, initPoolSize);
final int maxIdle = castedDs.getMaxIdle();
assertEquals(3, maxIdle);
final Connection connection = ds.getConnection();
assertNotNull(connection);