METHOD_0 ( ) { java . lang . String url = STRING_0 ; java . util . Map < java . lang . String , java . lang . String > IDENT_0 = new java . util . HashMap ( ) ; IDENT_0 . put ( "a" , STRING_1 ) ; java . lang . String expected = url + STRING_2 ; java . lang . String actual = IDENT_1 . IDENT_2 . IDENT_3 . IDENT_4 . server . IDENT_5 . IDENT_6 . METHOD_1 ( url , IDENT_0 ) ; "<AssertPlaceHolder>" ; } METHOD_1 ( java . lang . String , java . util . Map ) { java . lang . StringBuilder sb = new java . lang . StringBuilder ( ) ; sb . append ( IDENT_7 ) ; char join ; if ( IDENT_7 . contains ( STRING_3 ) ) { join = STRING_4 ; } else { join = STRING_5 ; } for ( Map . Entry < java . lang . String , java . lang . String > parameter : IDENT_8 . entrySet ( ) ) { sb . append ( join ) ; sb . append ( parameter . getKey ( ) ) ; sb . append ( STRING_6 ) ; java . lang . String value ; try { value = java . net . IDENT_9 . encode ( parameter . getValue ( ) , STRING_7 ) ; } catch ( java . io . IDENT_10 ex ) { java . util . logging . IDENT_11 . METHOD_2 ( IDENT_1 . IDENT_2 . IDENT_3 . IDENT_4 . server . IDENT_5 . IDENT_6 . class . getName ( ) ) . log ( IDENT_12 . IDENT_13 , null , ex ) ; throw new java . lang . IllegalStateException ( STRING_8 , ex ) ; } sb . append ( value ) ; join = STRING_4 ; } return sb . toString ( ) ; }
org . junit . Assert . assertThat ( actual , org . hamcrest . CoreMatchers . is ( expected ) )