void () { mockSql(); doTest(""" import java.sql.*; class X { static void m(Driver driver) throws SQLException { try (Connection connection = driver.connect("jdbc", null); PreparedStatement statement = connection.prepareStatement("SELECT *"); ResultSet resultSet = statement.executeQuery()) { while (resultSet.next()) { resultSet.getMetaData(); } } catch(Exception e) {} } }"""); }