public static void checkDataSourceConnection(HikariDataSource ds) {
        java.sql.Connection connection = null;
        try {
            connection = ds.getConnection();
        } catch (Exception e) {
            throw new RuntimeException(e);
        } finally {
            if (connection != null) {
                try {
                    connection.close();
                } catch (Exception e) {
                    LOGGER.error(e.getMessage(), e);
                }
            }
        }
    }
@Test
    void testCheckConnectionThrowException() throws SQLException {
        assertThrows(RuntimeException.class, () -> {
            HikariDataSource ds = mock(HikariDataSource.class);
            when(ds.getConnection()).thenThrow(new RuntimeException());
            ConnectionCheckUtil.checkDataSourceConnection(ds);
            verify(ds).getConnection();
        });
    }