METHOD_0 ( ) { try { handler . METHOD_1 ( IDENT_0 ) ; java . util . Properties props = METHOD_2 ( ) ; props . put ( IDENT_1 . IDENT_2 , "bar" ) ; handler . init ( props ) ; com . IDENT_3 . IDENT_4 . IDENT_5 IDENT_4 = METHOD_3 ( STRING_0 , new java . util . Date ( ( ( new java . util . Date ( ) . getTime ( ) ) + INT_0 ) ) , IDENT_6 ) ; javax . servlet . http . IDENT_7 IDENT_8 = new javax . servlet . http . METHOD_4 ( STRING_1 , IDENT_4 . serialize ( ) ) ; javax . servlet . http . IDENT_9 request = org . mockito . Mockito . mock ( javax . servlet . http . IDENT_9 . class ) ; org . mockito . Mockito . when ( request . METHOD_5 ( ) ) . thenReturn ( new javax . servlet . http . METHOD_4 [ ] { IDENT_8 } ) ; org . mockito . Mockito . when ( request . METHOD_6 ( ) ) . thenReturn ( new java . lang . StringBuffer ( com . IDENT_10 . IDENT_11 . auth . server . IDENT_12 . IDENT_13 ) ) ; javax . servlet . http . IDENT_14 response = org . mockito . Mockito . mock ( javax . servlet . http . IDENT_14 . class ) ; org . mockito . Mockito . when ( response . METHOD_7 ( com . IDENT_10 . IDENT_11 . auth . server . IDENT_12 . IDENT_13 ) ) . thenReturn ( com . IDENT_10 . IDENT_11 . auth . server . IDENT_12 . IDENT_13 ) ; com . IDENT_10 . IDENT_11 . auth . server . IDENT_15 token = handler . METHOD_8 ( request , response ) ; "<AssertPlaceHolder>" ; } catch ( javax . servlet . IDENT_16 IDENT_17 ) { org . junit . Assert . fail ( STRING_2 ) ; } catch ( com . IDENT_10 . IDENT_11 . auth . client . IDENT_18 IDENT_19 ) { org . junit . Assert . fail ( STRING_3 ) ; } } METHOD_9 ( ) { return java . lang . System . getProperty ( STRING_4 ) ; }
org . junit . Assert . assertEquals ( STRING_0 , token . METHOD_9 ( ) )