FBConnectionPoolDataSource fbPool = (FBConnectionPoolDataSource)pool;
AbstractFBConnectionPoolDataSource fbPool = (AbstractFBConnectionPoolDataSource)pool;
    public void testEncoding() throws Exception {        FBConnectionPoolDataSource fbPool = (FBConnectionPoolDataSource)pool;                fbPool.setEncoding("WIN1251");                try {            Connection connection = pool.getPooledConnection().getConnection();                        try {                                Statement stmt = connection.createStatement();                try {                    ResultSet rs = stmt.executeQuery(                        "SELECT '" + UKRAINIAN_TEST_STRING + "' FROM rdb$database");                                        assertTrue("Should select at least one row.", rs.next());                    assertTrue("Should select correct values",                         Arrays.equals(rs.getBytes(1), UKRAINIAN_TEST_BYTES));                    assertTrue("Should select correct values",                         UKRAINIAN_TEST_STRING.equals(rs.getString(1)));                    assertTrue("Should select only one row.", !rs.next());                                    } finally {                    stmt.close();                }                            } finally {                connection.close();            }        } finally {            pool.shutdown();        }    }