Buggy code:
public class CacheSessionDataTest extends BaseJDBCTestCase { public CacheSessionDataTest ( String name ) { } public static Test suite ( ) { } private static Test baseSuite ( String name ) { } public void setUp ( ) throws SQLException { } public void tearDown ( ) throws Exception { } public static void setIsolationJDBC ( int isolation ) throws SQLException { } public static void setIsolationSQL ( String sqlName ) throws SQLException { } public static int getTransactionIsolationJDBC ( ) throws SQLException { } public static int getCycleIsolationJDBC ( ) throws SQLException { } public static String getCycleIsolationSQL ( ) throws SQLException { } public static void setSchema ( String schemaName ) throws SQLException { } public static String getSchemaTransition ( String nextSchema ) throws SQLException { } private static IsoLevel [ ] isoLevels ; private static int isolationIndex = - 1 ; private static IsoLevel cycleIsolation ( ) { } private void verifyCachedIsolation ( Connection c ) throws SQLException { } private void verifyCachedSchema ( Connection c ) throws SQLException { <START_BUG> if ( c instanceof org . apache . derby . client . am . Connection ) { <END_BUG> String cached = ( ( org . apache . derby . client . am . Connection ) ( c ) ) . getCurrentSchemaName ( ) ; Statement s = c . createStatement ( ) ; ResultSet rs = s . executeQuery ( "VALUES<seq2seq4repair_space>CURRENT<seq2seq4repair_space>SCHEMA" ) ; rs . next ( ) ; String reported = rs . getString ( 1 ) ; assertEquals ( reported , cached ) ; } else { println ( ( "Cannot<seq2seq4repair_space>verify<seq2seq4repair_space>cached<seq2seq4repair_space>schema<seq2seq4repair_space>for<seq2seq4repair_space>" + ( c . getClass ( ) ) ) ) ; } } public void testChangeIsoLevelStatementSQL ( ) throws SQLException { } public void testChangeIsoLevelPreparedStatementSQL ( ) throws SQLException { } public void testChangeIsoLevelFunctionJDBC ( ) throws SQLException { } public void testChangeIsoLevelFunctionSQL ( ) throws SQLException { } public void testChangeIsoLevelPreparedFunctionJDBC ( ) throws SQLException { } public void testChangeIsoLevelPreparedFunctionSQL ( ) throws SQLException { } public void testChangeIsoLevelProcedureJDBC ( ) throws SQLException { } public void testChangeIsoLevelProcedureSQL ( ) throws SQLException { } public void testChangeIsoLevelCallableStatementJDBC ( ) throws SQLException { } public void testChangeIsoLevelCallableStatementSQL ( ) throws SQLException { } public void testChangeIsoLevelSQLInBatch ( ) throws SQLException { } public void testChangeIsoLevelProcedureJdbcBatch ( ) throws SQLException { } public void testChangeIsoLevelProcedureSqlBatch ( ) throws SQLException { } public void testChangeIsoLevelProcedureJdbcCallableBatch ( ) throws SQLException { } public void testChangeIsoLevelProcedureSqlCallableBatch ( ) throws SQLException { } private void cursorTest ( String table , int type , int concur ) throws SQLException { } private void preparedCursorTest ( String table , int type , int concur ) throws SQLException { } public void testSmallForwardOnlyReadOnly ( ) throws SQLException { } public void testSmallScrollInsensitiveReadOnly ( ) throws SQLException { } public void testSmallScrollSensitiveReadOnly ( ) throws SQLException { } public void testSmallForwardOnlyUpdatable ( ) throws SQLException { } public void testSmallScrollInsensitiveUpdatable ( ) throws SQLException { } public void testSmallScrollSensitiveUpdatable ( ) throws SQLException { } public void testSmallPreparedForwardOnlyReadOnly ( ) throws SQLException { } public void testSmallPreparedScrollSensitiveReadOnly ( ) throws SQLException { } public void testSmallPreparedScrollInsensitiveReadOnly ( ) throws SQLException { } public void testSmallPreparedForwardOnlyUpdatable ( ) throws SQLException { } public void testSmallPreparedScrollSensitiveUpdatable ( ) throws SQLException { } public void testSmallPreparedScrollInsensitiveUpdatable ( ) throws SQLException { } public void testLargeForwardOnlyReadOnly ( ) throws SQLException { } public void testLargeScrollSensitiveReadOnly ( ) throws SQLException { } public void testLargeScrollInsensitiveReadOnly ( ) throws SQLException { } public void testLargeForwardOnlyUpdatable ( ) throws SQLException { } public void testLargeScrollSensitiveUpdatable ( ) throws SQLException { } public void testLargeScrollInsensitiveUpdatable ( ) throws SQLException { } public void testLargePreparedForwardOnlyReadOnly ( ) throws SQLException { } public void testLargePreparedScrollSensitiveReadOnly ( ) throws SQLException { } public void testLargePreparedScrollInsensitiveReadOnly ( ) throws SQLException { } public void testLargePreparedForwardOnlyUpdatable ( ) throws SQLException { } public void testLargePreparedScrollSensitiveUpdatable ( ) throws SQLException { } public void testLargePreparedScrollInsensitiveUpdatable ( ) throws SQLException { } public void testSetSchema ( ) throws SQLException { } public void testPreparedSetSchema ( ) throws SQLException { } public void testSetSchemaProcedure ( ) throws SQLException { } public void testPreparedSetSchemaProcedure ( ) throws SQLException { } public void testSetSchemaFunction ( ) throws SQLException { } public void testPreparedSetSchemaFunction ( ) throws SQLException { } public void testSetSchemaFunctionLarge ( ) throws SQLException { } public void testPreparedSetSchemaFunctionLarge ( ) throws SQLException { } }

Fix:
if ( usingDerbyNetClient ( ) ) {