METHOD_0 ( ) { final java . lang . String uri = null ; final java . lang . String expected = "/" ; mock . METHOD_1 ( new org . IDENT_0 . METHOD_2 ( ) { { METHOD_3 ( req ) . METHOD_4 ( ) ; METHOD_5 ( METHOD_6 ( uri ) ) ; METHOD_3 ( req ) . METHOD_7 ( ) ; METHOD_5 ( METHOD_6 ( null ) ) ; } } ) ; "<AssertPlaceHolder>" ; } METHOD_8 ( javax . servlet . http . IDENT_1 ) { java . lang . String IDENT_2 = req . METHOD_4 ( ) ; java . lang . String IDENT_3 = req . METHOD_7 ( ) ; if ( IDENT_3 != null ) IDENT_2 = IDENT_2 . METHOD_9 ( IDENT_3 ) ; if ( ( IDENT_2 == null ) || ( ( IDENT_2 . length ( ) ) == 0 ) ) IDENT_2 = "/" ; IDENT_2 = com . ibm . ws . util . IDENT_4 . METHOD_10 ( IDENT_2 ) ; int IDENT_5 ; if ( ( IDENT_5 = IDENT_2 . indexOf ( STRING_0 ) ) != ( - 1 ) ) { IDENT_2 = IDENT_2 . substring ( 0 , IDENT_5 ) ; } if ( ( IDENT_2 . indexOf ( STRING_1 ) ) >= 0 ) { IDENT_2 = IDENT_2 . replaceAll ( STRING_1 , STRING_2 ) ; } return IDENT_2 ; }
org . junit . Assert . assertEquals ( expected , handler . METHOD_8 ( req ) )