Buggy code:
public class TestBQL extends TestCase { private BQLCompiler _compiler ; private JsonComparator _comp = new JsonComparator ( 1 ) ; public TestBQL ( ) { } @ Test public void testBasic1 ( ) throws Exception { } @ Test public void testBasic2 ( ) throws Exception { } @ Test public void testOrderBy ( ) throws Exception { } @ Test public void testOrderBy2 ( ) throws Exception { } @ Test public void testLimit1 ( ) throws Exception { } @ Test public void testLimit2 ( ) throws Exception { } @ Test public void testGroupBy1 ( ) throws Exception { } @ Test public void testGroupBy2 ( ) throws Exception { } @ Test public void testEqualPredInteger ( ) throws Exception { } @ Test public void testEqualPredFloat ( ) throws Exception { } @ Test public void testEqualPredString ( ) throws Exception { } @ Test public void testInPred1 ( ) throws Exception { } @ Test public void testInPred2 ( ) throws Exception { } @ Test public void testInPred3 ( ) throws Exception { } @ Test public void testNotInPred ( ) throws Exception { } @ Test public void testContainsAll ( ) throws Exception { } @ Test public void testPathPred1 ( ) throws Exception { } @ Test public void testPathPred2 ( ) throws Exception { } @ Test public void testNotEqualPred ( ) throws Exception { } @ Test public void testNotEqualForRange ( ) throws Exception { } @ Test public void testQueryIs ( ) throws Exception { } @ Test public void testQueryAndSelection1 ( ) throws Exception { } @ Test public void testQueryAndSelection2 ( ) throws Exception { } @ Test public void testBrowseBy1 ( ) throws Exception { } @ Test public void testBrowseBy2 ( ) throws Exception { } @ Test public void testBetweenPred ( ) throws Exception { } @ Test public void testFetchingStored1 ( ) throws Exception { } @ Test public void testFetchingStored2 ( ) throws Exception { } @ Test public void testNotBetweenPred ( ) throws Exception { } @ Test public void testRangePred1 ( ) throws Exception { } @ Test public void testRangePred2 ( ) throws Exception { } @ Test public void testRangePred3 ( ) throws Exception { System . out . println ( "testRangePred3" ) ; System . out . println ( "==================================================" ) ; JSONObject json = _compiler . compile ( ( "SELECT<seq2seq4repair_space>year<seq2seq4repair_space>" + ( "FROM<seq2seq4repair_space>cars<seq2seq4repair_space>" + "WHERE<seq2seq4repair_space>year<seq2seq4repair_space>><seq2seq4repair_space>1999<seq2seq4repair_space>AND<seq2seq4repair_space>year<seq2seq4repair_space><=<seq2seq4repair_space>2003<seq2seq4repair_space>AND<seq2seq4repair_space>year<seq2seq4repair_space>>=<seq2seq4repair_space>1999" ) ) ) ; <START_BUG> JSONObject expected = new JSONObject ( "{\"selections\":[{\"range\":{\"year\":{\"to\":2003,\"include_lower\":true,\"include_upper\":false,\"from\":1999}}}],<seq2seq4repair_space>\"meta\":{\"select_list\":[\"year\"]}}" ) ; <END_BUG> assertTrue ( _comp . isEquals ( json , expected ) ) ; } @ Test public void testRangePred4 ( ) throws Exception { } @ Test public void testRangePred5 ( ) throws Exception { } @ Test public void testOrPred ( ) throws Exception { } @ Test public void testAndPred ( ) throws Exception { } @ Test public void testAndOrPred ( ) throws Exception { } @ Test public void testSelectionAndFilter ( ) throws Exception { } @ Test public void testMultipleQueries ( ) throws Exception { } @ Test public void testMatchPred ( ) throws Exception { } @ Test public void testLikePredicate1 ( ) throws Exception { } @ Test public void testLikePredicate2 ( ) throws Exception { } @ Test public void testLikePredicate3 ( ) throws Exception { } @ Test public void testQueryAndLike ( ) throws Exception { } @ Test public void testColumnType1 ( ) throws Exception { } @ Test public void testColumnType2 ( ) throws Exception { } @ Test public void testColumnType3 ( ) throws Exception { } @ Test public void testColumnType4 ( ) throws Exception { } @ Test public void testGivenClause1 ( ) throws Exception { } @ Test public void testGivenClause2 ( ) throws Exception { } @ Test public void testTimePred1 ( ) throws Exception { } @ Test public void testTimePred2 ( ) throws Exception { } @ Test public void testTimePred3 ( ) throws Exception { } @ Test public void testDateTime1 ( ) throws Exception { } @ Test public void testDateTime2 ( ) throws Exception { } @ Test public void testUID ( ) throws Exception { } @ Test public void testCorrectStatement ( ) throws Exception { } }

Fix:
JSONObject expected = new JSONObject ( "{\"selections\":[{\"range\":{\"year\":{\"to\":2003,\"include_lower\":false,\"include_upper\":true,\"from\":1999}}}],<seq2seq4repair_space>\"meta\":{\"select_list\":[\"year\"]}}" ) ;