METHOD_0 ( ) { org . IDENT_0 . IDENT_1 . IDENT_2 . web . IDENT_3 controller = new org . IDENT_0 . IDENT_1 . IDENT_2 . web . METHOD_1 ( ) ; org . IDENT_0 . IDENT_1 . common . domain . IDENT_4 IDENT_5 = new org . IDENT_0 . IDENT_1 . common . domain . METHOD_2 ( ) ; IDENT_5 . setId ( INT_0 ) ; javax . servlet . http . IDENT_6 request = mock ( javax . servlet . http . IDENT_6 . class ) ; when ( request . METHOD_3 ( METHOD_2 . IDENT_7 ) ) . thenReturn ( true ) ; when ( request . METHOD_3 ( METHOD_2 . IDENT_8 ) ) . thenReturn ( false ) ; org . springframework . security . core . IDENT_9 IDENT_10 = mock ( org . springframework . security . core . IDENT_9 . class ) ; when ( IDENT_10 . METHOD_4 ( ) ) . thenReturn ( IDENT_5 ) ; "<AssertPlaceHolder>" ; } METHOD_5 ( javax . servlet . http . IDENT_6 , java . security . IDENT_11 ) { if ( request . METHOD_3 ( METHOD_2 . IDENT_8 ) ) { return STRING_0 ; } else if ( request . METHOD_3 ( METHOD_2 . IDENT_7 ) ) { return ( STRING_1 + ( METHOD_6 ( IDENT_10 ) . getId ( ) ) ) + STRING_2 ; } return STRING_3 ; }
org . junit . Assert . assertEquals ( ( ( STRING_1 + ( IDENT_5 . getId ( ) ) ) + STRING_2 ) , controller . METHOD_5 ( request , IDENT_10 ) )