METHOD_0 ( ) { java . lang . String expResult = STRING_0 ; java . lang . String IDENT_0 = STRING_1 ; java . lang . String IDENT_1 = STRING_2 ; int IDENT_2 = 1 ; int IDENT_3 = 0 ; boolean IDENT_4 = false ; edu . IDENT_5 . IDENT_6 . shared . IDENT_7 . json . IDENT_8 IDENT_9 = new edu . IDENT_5 . IDENT_6 . shared . IDENT_7 . json . METHOD_1 ( IDENT_0 , IDENT_1 , IDENT_2 , IDENT_3 , IDENT_4 ) ; instance = new edu . IDENT_5 . IDENT_6 . shared . IDENT_7 . IDENT_10 . METHOD_2 ( IDENT_9 ) ; IDENT_11 = new edu . IDENT_5 . IDENT_6 . server . METHOD_3 ( ) ; "<AssertPlaceHolder>" ; } build ( edu . IDENT_5 . IDENT_6 . shared . IDENT_7 . IDENT_10 . IDENT_12 ) { java . lang . StringBuilder query = new java . lang . StringBuilder ( ) ; for ( java . lang . String key : args . METHOD_4 ( ) ) { for ( java . lang . String value : args . get ( key ) ) { if ( ( query . length ( ) ) == 0 ) { query . append ( key ) . append ( STRING_3 ) . append ( IDENT_11 . encode ( value ) ) ; } else { query . append ( STRING_4 ) . append ( key ) . append ( STRING_3 ) . append ( IDENT_11 . encode ( value ) ) ; } } } java . lang . String url = ( ( ( ( ( ( ( protocol ) + STRING_5 ) + ( host ) ) + STRING_6 ) + ( port ) ) + ( page ) ) + ( ( query . length ( ) ) > 0 ? STRING_7 : "" ) ) + ( query . toString ( ) ) ; return url ; }
org . junit . Assert . assertEquals ( expResult , instance . build ( IDENT_11 ) )