METHOD_0 ( ) { when ( IDENT_0 . METHOD_1 ( ) ) . thenReturn ( IDENT_1 ) ; when ( IDENT_2 . METHOD_2 ( ) ) . thenReturn ( IDENT_0 ) ; IDENT_3 . IDENT_4 . IDENT_5 . IDENT_6 IDENT_7 = new IDENT_3 . IDENT_4 . IDENT_5 . METHOD_3 ( ) ; IDENT_3 . IDENT_4 . core . IDENT_8 session = IDENT_7 . METHOD_1 ( IDENT_2 ) ; "<AssertPlaceHolder>" ; verify ( IDENT_0 , times ( 1 ) ) . METHOD_1 ( ) ; verify ( IDENT_2 , times ( 1 ) ) . METHOD_2 ( ) ; } METHOD_1 ( boolean ) { if ( ( session ) == null ) { javax . servlet . http . IDENT_9 IDENT_10 = IDENT_11 . METHOD_1 ( create ) ; if ( IDENT_10 != null ) { session = new IDENT_3 . IDENT_4 . core . METHOD_4 ( IDENT_10 ) ; } } return session ; }
org . junit . Assert . assertThat ( session , org . hamcrest . core . Is . is ( IDENT_1 ) )