Buggy code:
; private static final int [ ] [ ] EXPECTED_NAME_ORDER = new int [ ] [ ] { CollationTest2 . DEFAULT_NAME_ORDER , CollationTest2 . ENGLISH_NAME_ORDER , CollationTest2 . POLISH_NAME_ORDER , CollationTest2 . NORWAY_NAME_ORDER } ; private static final String [ ] LIKE_NAMES = new String [ ] { "Waagan" , "Smith" , "Zebra" , "xcorn" , "aBebra" , "Acorn" , "Amith" , "aacorn" , "xxxaa" , "aaxxx" , "yyyaa<seq2seq4repair_space>y" } ; private static final String [ ] LIKE_TEST_CASES = new String [ ] { "Waagan" , "W_gan" , "aaxxx" , "_xxx" , "xxxaa" , "xxx_" , "xxx_%" , "yyy_%" } ; private static final String [ ] LIKE_CHAR_TEST_CASES = new String [ ] { "Waagan<seq2seq4repair_space>" , "W_gan<seq2seq4repair_space>" , "aaxxx%" , "_xxx%" , "xxx%" , "xxx_<seq2seq4repair_space>%" , "xxx%" , "yyy_%" } ; private static final int [ ] DEFAULT_LIKE_RESULT = new int [ ] { 0 , - 1 , 9 , - 1 , 8 , - 1 , 8 , 10 } ; private static final int [ ] ENGLISH_LIKE_RESULT = new int [ ] { 0 , - 1 , 9 , - 1 , 8 , - 1 , 8 , 10 } ; private static final int [ ] POLISH_LIKE_RESULT = new int [ ] { 0 , - 1 , 9 , - 1 , 8 , - 1 , 8 , 10 } ; private static final int [ ] NORWAY_LIKE_RESULT = new int [ ] { 0 , - 1 , 9 , - 1 , 8 , - 1 , 8 , 10 } ; private static final int [ ] [ ] EXPECTED_LIKE_RESULTS = new int [ ] [ ] { CollationTest2 . DEFAULT_LIKE_RESULT , CollationTest2 . ENGLISH_LIKE_RESULT , CollationTest2 . POLISH_LIKE_RESULT , CollationTest2 . NORWAY_LIKE_RESULT } ; public CollationTest2 ( String name ) { } protected void initializeConnection ( Connection conn ) throws SQLException { } private static final void printRuleBasedCollator ( ) { } private static final String formatString ( String str , boolean all ) { } private final void formatLikeResults ( Connection conn , String query ) throws SQLException { } private final void printLikeResults ( Connection conn ) throws SQLException { } private void checkLangBasedQuery ( String query , String [ ] [ ] expectedResult , boolean ordered ) throws SQLException { } private void checkParamQuery ( String query , String [ ] param , int paramNumber , String [ ] [ ] expectedResult , boolean ordered ) throws SQLException { } protected void doExportTable ( String schemaName , String tableName , String fileName , String colDel , String charDel , String codeset ) throws SQLException { } protected void doImportTable ( String schemaName , String tableName , String fileName , String colDel , String charDel , String codeset , int replace ) throws SQLException { } private String [ ] [ ] full_row_set ( int [ ] expected_order , int start_offset , int stop_offset , boolean ascending_order ) { } private String [ ] [ ] full_row_single_value ( int expected_row , String [ ] ret_list ) { } private boolean isDatabaseBasicCollation ( ) throws SQLException { } private void setUpTable ( ) throws SQLException { } private void setUpLikeTable ( ) throws SQLException { } private void setUpALLVALS ( Connection conn ) throws SQLException { } private void runDERBY_2703 ( int db_index ) throws SQLException { } public void ci_testDerby5367 ( ) throws SQLException { } private void runDerby5367TestCode ( String table ) throws SQLException { } private void checkSimpleCompare ( int [ ] expected_order ) throws SQLException { } private void checkTwoPersistentCompare ( int [ ] expected_order ) throws SQLException { } private void dropTable ( ) throws SQLException { } private void runQueries ( int db_index , String create_idx_qry , String idx_name ) throws SQLException { } private void runLikeTests ( int db_index ) throws SQLException { } private void runAlterTableCompress ( int db_index ) throws SQLException { } private void runAlterTableDropColumn ( Connection conn , int db_index ) throws SQLException { } private void runAlterTableAddColumn ( int db_index ) throws SQLException { } private void runBulkInsert ( int db_index ) throws SQLException { Statement s = createStatement ( ) ; setUpTable ( ) ; String emptyFileName = SupportFilesSetup . getReadWrite ( "empty_file.dat" ) . getPath ( ) ; s . execute ( "DELETE<seq2seq4repair_space>FROM<seq2seq4repair_space>EMPTY_TABLE" ) ; doExportTable ( "APP" , "EMPTY_TABLE" , emptyFileName , null , null , "UTF-16" ) ; commit ( ) ; <START_BUG> doImportTable ( "APP" , "EMPTY_TABLE" , emptyFileName , "|" , "``" , null , 1 ) ; <END_BUG> commit ( ) ; String fileName = SupportFilesSetup . getReadWrite ( "names.dat" ) . getPath ( ) ; doExportTable ( "APP" , "CUSTOMER" , fileName , null , null , "UTF-16" ) ; commit ( ) ; s . execute ( "DELETE<seq2seq4repair_space>FROM<seq2seq4repair_space>CUSTOMER" ) ; commit ( ) ; doImportTable ( "APP" , "CUSTOMER" , fileName , null , null , "UTF-16" , 0 ) ; runQueries ( db_index , null , null ) ; s . execute ( "DELETE<seq2seq4repair_space>FROM<seq2seq4repair_space>CUSTOMER" ) ; s . execute ( "CREATE<seq2seq4repair_space>INDEX<seq2seq4repair_space>IDX1<seq2seq4repair_space>ON<seq2seq4repair_space>CUSTOMER<seq2seq4repair_space>(NAME)" ) ; s . execute ( "CREATE<seq2seq4repair_space>INDEX<seq2seq4repair_space>IDX2<seq2seq4repair_space>ON<seq2seq4repair_space>CUSTOMER<seq2seq4repair_space>(NAME,<seq2seq4repair_space>ID)" ) ; s . execute ( "CREATE<seq2seq4repair_space>INDEX<seq2seq4repair_space>IDX3<seq2seq4repair_space>ON<seq2seq4repair_space>CUSTOMER<seq2seq4repair_space>(ID,<seq2seq4repair_space>NAME)" ) ; s . execute ( "CREATE<seq2seq4repair_space>INDEX<seq2seq4repair_space>IDX4<seq2seq4repair_space>ON<seq2seq4repair_space>CUSTOMER<seq2seq4repair_space>(ID)" ) ; s . execute ( "CREATE<seq2seq4repair_space>INDEX<seq2seq4repair_space>IDX5<seq2seq4repair_space>ON<seq2seq4repair_space>CUSTOMER<seq2seq4repair_space>(ID,<seq2seq4repair_space>NAME,<seq2seq4repair_space>D1,<seq2seq4repair_space>D2,<seq2seq4repair_space>D3)" ) ; doImportTable ( "APP" , "CUSTOMER" , fileName , null , null , "UTF-16" , 0 ) ; runQueries ( db_index , null , null ) ; s . execute ( "DROP<seq2seq4repair_space>INDEX<seq2seq4repair_space>IDX1<seq2seq4repair_space>" ) ; s . execute ( "DROP<seq2seq4repair_space>INDEX<seq2seq4repair_space>IDX2<seq2seq4repair_space>" ) ; s . execute ( "DROP<seq2seq4repair_space>INDEX<seq2seq4repair_space>IDX3<seq2seq4repair_space>" ) ; s . execute ( "DROP<seq2seq4repair_space>INDEX<seq2seq4repair_space>IDX4<seq2seq4repair_space>" ) ; s . execute ( "DROP<seq2seq4repair_space>INDEX<seq2seq4repair_space>IDX5<seq2seq4repair_space>" ) ; doImportTable ( "APP" , "CUSTOMER" , fileName , null , null , "UTF-16" , 0 ) ; doImportTable ( "APP" , "CUSTOMER" , fileName , null , null , "UTF-16" , 1 ) ; runQueries ( db_index , null , null ) ; s . execute ( "CREATE<seq2seq4repair_space>INDEX<seq2seq4repair_space>IDX1<seq2seq4repair_space>ON<seq2seq4repair_space>CUSTOMER<seq2seq4repair_space>(NAME)" ) ; s . execute ( "CREATE<seq2seq4repair_space>INDEX<seq2seq4repair_space>IDX2<seq2seq4repair_space>ON<seq2seq4repair_space>CUSTOMER<seq2seq4repair_space>(NAME,<seq2seq4repair_space>ID)" ) ;

Fix:
doImportTable ( "APP" , "EMPTY_TABLE" , emptyFileName , "|" , "`" , null , 1 ) ;