METHOD_0 ( ) { IDENT_0 . METHOD_1 ( org . IDENT_1 . IDENT_2 . internal . app . IDENT_3 . IDENT_4 ) ; when ( IDENT_5 . get ( ) ) . thenReturn ( null ) ; "<AssertPlaceHolder>" ; } METHOD_2 ( ) { if ( ( IDENT_6 ) && ( ! ( com . google . common . base . IDENT_7 . METHOD_3 ( url ) ) ) ) { return url ; } javax . servlet . http . IDENT_8 request = METHOD_4 ( ) ; if ( request != null ) { java . lang . StringBuffer url = request . METHOD_5 ( ) ; java . lang . String uri = request . METHOD_6 ( ) ; java . lang . String ctx = request . METHOD_7 ( ) ; return url . substring ( 0 , ( ( ( url . length ( ) ) - ( uri . length ( ) ) ) + ( ctx . length ( ) ) ) ) ; } if ( ! ( com . google . common . base . IDENT_7 . METHOD_3 ( url ) ) ) { return url ; } return null ; }
org . junit . Assert . assertThat ( IDENT_0 . METHOD_2 ( ) , org . hamcrest . CoreMatchers . equalTo ( org . IDENT_1 . IDENT_2 . internal . app . IDENT_3 . IDENT_4 ) )