public static <T> T getWithRootConnection(final Function<Connection, T> conectionFunction) {
        Objects.requireNonNull(conectionFunction);
        final ConnectionConfig connectionConfig = createConnectionConfig(new CommonDbConfig());
        final ConnectionConfig rootConnectionConfig = createRootConnectionConfig(connectionConfig);

        ensureJdbcDriver(connectionConfig);
        try (final Connection connection = DriverManager.getConnection(rootConnectionConfig.getUrl(),
                rootConnectionConfig.getUser(),
                rootConnectionConfig.getPassword())) {
            return conectionFunction.apply(connection);
        } catch (final SQLException e) {
            throw new RuntimeException(e.getMessage(), e);
        }
    }
Verify there is a connection to the database on the root account.
stroom-test-common/src/main/java/stroom/test/common/util/db/DbTestUtil.java