METHOD_0 ( ) { when ( IDENT_0 . METHOD_1 ( user . METHOD_2 ( ) ) ) . thenReturn ( user ) ; when ( IDENT_1 . METHOD_3 ( IDENT_2 , user ) ) . thenReturn ( IDENT_3 ) ; ca . IDENT_4 . IDENT_5 . IDENT_6 . model . IDENT_7 token = service . METHOD_4 ( IDENT_2 ) ; "<AssertPlaceHolder>" ; verify ( IDENT_0 ) . METHOD_1 ( user . METHOD_2 ( ) ) ; verify ( IDENT_1 ) . METHOD_3 ( IDENT_2 , user ) ; } METHOD_4 ( ca . IDENT_4 . IDENT_5 . IDENT_6 . model . IDENT_8 ) { ca . IDENT_4 . IDENT_5 . IDENT_6 . model . user . User user = IDENT_9 . METHOD_1 ( METHOD_5 ( ) ) ; ca . IDENT_4 . IDENT_5 . IDENT_6 . model . IDENT_7 METHOD_3 = IDENT_1 . METHOD_3 ( IDENT_2 , user ) ; if ( METHOD_3 == null ) { throw new ca . IDENT_4 . IDENT_5 . IDENT_6 . exceptions . METHOD_6 ( STRING_0 ) ; } return METHOD_3 ; }
org . junit . Assert . assertEquals ( IDENT_3 , token )