ConfigStoreConnectionProvider implements ConnectionProvider { @Override public Connection getConnection() throws SQLException { return sessionSupplier.openConnection(CONFIG_DATASTORE_NAME); } @Inject  ConfigStoreConnectionProvider(final DataSessionSupplier sessionSupplier); @Override void initialize(); @Override Connection getConnection(); @Override void shutdown();  }
@Test public void testCanOpenConnection() throws SQLException { try (Connection connection = underTest.getConnection()) { assertThat(connection.getMetaData().getURL(), is("jdbc:h2:mem:config")); } }