METHOD_0 ( ) { IDENT_0 . util . IDENT_1 expected = new IDENT_0 . util . METHOD_1 ( STRING_0 , ( STRING_1 + ( IDENT_2 ) ) ) ; IDENT_0 . util . METHOD_1 actual = IDENT_0 . util . METHOD_1 . parse ( ( STRING_2 + ( IDENT_2 ) ) ) ; "<AssertPlaceHolder>" ; } parse ( java . lang . String ) { java . lang . String IDENT_3 = STRING_3 ; if ( ( ( uri . length ( ) ) < ( IDENT_3 . length ( ) ) ) || ( ! ( uri . substring ( 0 , IDENT_3 . length ( ) ) . equalsIgnoreCase ( IDENT_3 ) ) ) ) { throw IDENT_4 . INSTANCE . METHOD_2 ( INT_0 , IDENT_3 ) ; } java . lang . String IDENT_5 = null ; java . lang . String IDENT_6 = null ; boolean IDENT_7 = false ; java . lang . String IDENT_8 = null ; int IDENT_9 = IDENT_3 . length ( ) ; for ( int i = IDENT_3 . length ( ) ; i < ( uri . length ( ) ) ; i ++ ) { char c = uri . charAt ( i ) ; if ( c == STRING_4 ) { java . lang . String token = uri . substring ( IDENT_9 , i ) ; if ( IDENT_5 == null ) { IDENT_5 = token . toLowerCase ( ) ; } else { if ( token . toLowerCase ( ) . startsWith ( STRING_5 ) ) { int equals = token . indexOf ( STRING_6 ) ; IDENT_6 = token . substring ( ( equals + 1 ) ) ; } else if ( STRING_7 . equalsIgnoreCase ( token ) ) { IDENT_7 = true ; } } IDENT_9 = i + 1 ; continue ; } if ( c == STRING_8 ) { java . lang . String token = uri . substring ( IDENT_9 , i ) ; if ( IDENT_5 == null ) { IDENT_5 = token . toLowerCase ( ) ; } else { if ( token . toLowerCase ( ) . startsWith ( STRING_5 ) ) { int equals = token . indexOf ( STRING_6 ) ; IDENT_6 = token . substring ( ( equals + 1 ) ) ; } else if ( STRING_7 . equalsIgnoreCase ( token ) ) { IDENT_7 = true ; } } IDENT_8 = uri . substring ( ( i + 1 ) ) ; break ; } } if ( IDENT_8 == null ) { throw IDENT_4 . INSTANCE . METHOD_2 ( 20 ) ; } java . lang . String text = null ; byte [ ] data = null ; if ( IDENT_7 ) { IDENT_8 = IDENT_8 . replaceAll ( STRING_9 , "" ) ; data = IDENT_0 . util . org . apache . commons . codec . IDENT_10 . IDENT_11 . METHOD_3 ( IDENT_8 ) ; if ( IDENT_6 != null ) { try { text = new java . lang . String ( data , IDENT_6 ) ; } catch ( java . io . IDENT_12 e ) { throw new java . lang . IllegalArgumentException ( IDENT_4 . INSTANCE . METHOD_4 ( INT_1 , IDENT_6 ) , e ) ; } data = null ; } } else { text = IDENT_8 ; } return new IDENT_0 . util . METHOD_1 ( IDENT_5 , data , text ) ; }
org . junit . Assert . assertEquals ( expected , actual )