METHOD_0 ( ) { java . lang . String expResult = STRING_0 ; java . lang . Integer value = 1 ; instance = new edu . IDENT_0 . IDENT_1 . shared . IDENT_2 . IDENT_3 . METHOD_1 ( ) ; IDENT_4 = new edu . IDENT_0 . IDENT_1 . server . METHOD_2 ( ) ; instance . METHOD_3 ( 1 ) ; "<AssertPlaceHolder>" ; } build ( edu . IDENT_0 . IDENT_1 . shared . IDENT_2 . IDENT_3 . IDENT_5 ) { 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_1 ) . append ( IDENT_4 . encode ( value ) ) ; } else { query . append ( STRING_2 ) . append ( key ) . append ( STRING_1 ) . append ( IDENT_4 . encode ( value ) ) ; } } } java . lang . String url = ( ( ( ( ( ( ( protocol ) + STRING_3 ) + ( host ) ) + STRING_4 ) + ( port ) ) + ( page ) ) + ( ( query . length ( ) ) > 0 ? STRING_5 : "" ) ) + ( query . toString ( ) ) ; return url ; }
org . junit . Assert . assertEquals ( expResult , instance . build ( IDENT_4 ) )