DatabaseMetaData dmd = connection.getMetaData();
FBDatabaseMetaData dmd = (FBDatabaseMetaData)connection.getMetaData();
    public void testResultSetMetaData2() throws Exception {        Properties props = new Properties();        props.putAll(this.getDefaultPropertiesForConnection());        props.put("lc_ctype", "UNICODE_FSS");                Connection connection = DriverManager.getConnection(this.getUrl(), props);                DatabaseMetaData dmd = connection.getMetaData();        int firebirdVersion = dmd.getDatabaseMajorVersion();                Statement stmt = connection.createStatement();                ResultSet rs = stmt.executeQuery(TEST_QUERY2);                ResultSetMetaData metaData = rs.getMetaData();        		          int columnDisplaySize = metaData.getColumnDisplaySize(3);                if (firebirdVersion == 1)            assertTrue("RDB$SECURITY_CLASS must have display size 31 ", columnDisplaySize == 10);        else        if (firebirdVersion == 2)            assertTrue("RDB$SECURITY_CLASS must have display size 31 ", columnDisplaySize == 31);        else            fail("Unknown Firebird version, not clear what to compare.");                int columnDisplaySize2 = metaData.getColumnDisplaySize(4);                if (firebirdVersion == 1)            assertTrue("RDB$CHARACTER_SET_NAME must have display size 31 ",columnDisplaySize2 == 10);        else        if (firebirdVersion == 2)            assertTrue("RDB$CHARACTER_SET_NAME must have display size 31 ",columnDisplaySize2 == 31);        else            fail("Unknown Firebird version, not clear what to compare.");                stmt.close();        connection.close();    }