METHOD_0 ( ) { me . IDENT_0 . IDENT_1 . IDENT_2 . URL IDENT_3 = me . IDENT_0 . IDENT_1 . IDENT_2 . URL . valueOf ( STRING_0 ) ; java . util . Map < java . lang . String , java . lang . String > params = new java . util . HashMap < java . lang . String , java . lang . String > ( ) ; params . put ( STRING_1 , STRING_2 ) ; me . IDENT_0 . IDENT_1 . IDENT_2 . URL IDENT_4 = new me . IDENT_0 . IDENT_1 . IDENT_2 . URL ( STRING_3 , STRING_4 , STRING_5 , params ) ; "<AssertPlaceHolder>" ; } valueOf ( java . lang . String ) { if ( ( url == null ) || ( ( ( url = url . trim ( ) ) . length ( ) ) == 0 ) ) { throw new java . lang . IllegalArgumentException ( STRING_6 ) ; } if ( ! ( me . IDENT_0 . IDENT_1 . IDENT_2 . URL . validate ( url ) ) ) { throw new java . lang . IllegalArgumentException ( STRING_7 ) ; } java . lang . String protocol = null ; java . lang . String host = null ; java . lang . String path = null ; java . util . Map < java . lang . String , java . lang . String > parameters = null ; int i = url . indexOf ( STRING_8 ) ; if ( i >= 0 ) { java . lang . String [ ] IDENT_5 = url . substring ( ( i + 1 ) ) . split ( STRING_9 ) ; parameters = new java . util . HashMap < java . lang . String , java . lang . String > ( ) ; for ( java . lang . String IDENT_6 : IDENT_5 ) { IDENT_6 = IDENT_6 . trim ( ) ; if ( ( IDENT_6 . length ( ) ) > 0 ) { int j = IDENT_6 . indexOf ( STRING_10 ) ; if ( j >= 0 ) { parameters . put ( IDENT_6 . substring ( 0 , j ) , IDENT_6 . substring ( ( j + 1 ) ) ) ; } else { parameters . put ( IDENT_6 , IDENT_6 ) ; } } } url = url . substring ( 0 , i ) ; } i = url . indexOf ( STRING_11 ) ; if ( i >= 0 ) { if ( i == 0 ) { throw new java . lang . IllegalStateException ( ( ( STRING_12 + url ) + STRING_13 ) ) ; } protocol = url . substring ( 0 , i ) ; url = url . substring ( ( i + 3 ) ) ; } else { i = url . indexOf ( STRING_14 ) ; if ( i >= 0 ) { if ( i == 0 ) { throw new java . lang . IllegalStateException ( ( ( STRING_12 + url ) + STRING_13 ) ) ; } protocol = url . substring ( 0 , i ) ; url = url . substring ( ( i + 1 ) ) ; } } i = url . indexOf ( "/" ) ; if ( i >= 0 ) { path = url . substring ( ( i + 1 ) ) ; url = url . substring ( 0 , i ) ; } if ( ( url . length ( ) ) > 0 ) { host = url ; } return new me . IDENT_0 . IDENT_1 . IDENT_2 . URL ( protocol , host , path , parameters ) ; }
org . junit . Assert . assertEquals ( IDENT_3 , IDENT_4 )