METHOD_0 ( ) { java . lang . String q = STRING_0 ; com . google . IDENT_0 . index . query . IDENT_1 < com . google . IDENT_0 . server . query . IDENT_2 . IDENT_3 > in = parse ( q ) ; "<AssertPlaceHolder>" ; exception . expect ( com . google . IDENT_0 . index . query . IDENT_4 . class ) ; exception . METHOD_1 ( STRING_1 ) ; METHOD_2 ( parse ( ( q + STRING_2 ) ) ) ; } query ( java . lang . String ) { java . lang . String s = com . google . IDENT_0 . client . IDENT_5 . METHOD_3 ( token ) ; int c = s . indexOf ( STRING_3 ) ; com . google . IDENT_0 . client . ui . IDENT_6 IDENT_7 ; if ( c >= 0 ) { java . lang . String IDENT_8 = s . substring ( 0 , c ) ; if ( s . substring ( c ) . equals ( STRING_4 ) ) { IDENT_7 = new com . google . IDENT_0 . client . IDENT_9 . METHOD_4 ( IDENT_8 , 0 ) ; } else { IDENT_7 = new com . google . IDENT_0 . client . IDENT_9 . METHOD_4 ( IDENT_8 , java . lang . Integer . METHOD_5 ( s . substring ( ( c + 1 ) ) ) ) ; } } else { IDENT_7 = new com . google . IDENT_0 . client . IDENT_9 . METHOD_4 ( s , 0 ) ; } com . google . IDENT_0 . client . IDENT_10 . METHOD_6 ( token , IDENT_7 ) ; }
org . junit . Assert . assertEquals ( query ( in ) , METHOD_2 ( in ) )