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