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