METHOD_0 ( ) { java . lang . String query = STRING_0 ; com . ocpsoft . IDENT_0 . IDENT_1 . url . IDENT_2 IDENT_3 = com . ocpsoft . IDENT_0 . IDENT_1 . url . IDENT_2 . build ( query ) ; java . lang . String result = IDENT_3 . METHOD_1 ( ) ; "<AssertPlaceHolder>" ; } METHOD_1 ( ) { try { java . lang . StringBuffer result = new java . lang . StringBuffer ( ) ; if ( ( null != ( parameters ) ) && ( ! ( parameters . isEmpty ( ) ) ) ) { result . append ( STRING_0 ) ; java . util . Iterator < java . util . Map . Entry < java . lang . String , java . util . List < java . lang . String > > > iterator = parameters . entrySet ( ) . iterator ( ) ; while ( iterator . hasNext ( ) ) { java . util . Map . Entry < java . lang . String , java . util . List < java . lang . String > > entry = iterator . next ( ) ; java . lang . String key = entry . getKey ( ) ; java . util . List < java . lang . String > values = entry . getValue ( ) ; if ( ( key != null ) && ( ! ( "" . equals ( key ) ) ) ) { key = java . net . IDENT_4 . encode ( key , STRING_1 ) ; result . append ( key ) ; if ( ( values != null ) && ( ! ( values . isEmpty ( ) ) ) ) { for ( int i = 0 ; i < ( values . size ( ) ) ; i ++ ) { java . lang . String value = values . get ( i ) ; if ( ( value != null ) && ( ! ( "" . equals ( value ) ) ) ) { value = java . net . IDENT_4 . encode ( value , STRING_1 ) ; result . append ( ( STRING_2 + value ) ) ; } else if ( ( value != null ) && ( "" . equals ( value ) ) ) { result . append ( STRING_2 ) ; } if ( i < ( ( values . size ( ) ) - 1 ) ) { result . append ( ( STRING_3 + key ) ) ; } } } } if ( iterator . hasNext ( ) ) { result . append ( STRING_3 ) ; } } } return result . toString ( ) ; } catch ( java . io . IDENT_5 e ) { throw new com . ocpsoft . IDENT_0 . METHOD_2 ( STRING_4 , e ) ; } }
org . junit . Assert . assertTrue ( ( ( result . length ( ) ) == 0 ) )