METHOD_0 ( ) { org . apache . IDENT_0 . jms . IDENT_1 connection = org . mockito . Mockito . mock ( org . apache . IDENT_0 . jms . IDENT_1 . class ) ; org . apache . IDENT_0 . jms . IDENT_2 session = org . mockito . Mockito . mock ( org . apache . IDENT_0 . jms . IDENT_2 . class ) ; org . mockito . Mockito . when ( connection . METHOD_1 ( org . mockito . Mockito . METHOD_2 ( ) ) ) . thenReturn ( session ) ; org . mockito . Mockito . when ( session . METHOD_3 ( ) ) . thenReturn ( new org . apache . IDENT_0 . jms . METHOD_4 ( ) ) ; org . apache . IDENT_0 . jms . IDENT_3 context = new org . apache . IDENT_0 . jms . METHOD_5 ( connection , javax . jms . IDENT_4 . IDENT_5 ) ; org . mockito . Mockito . verify ( connection , org . mockito . Mockito . times ( 0 ) ) . METHOD_1 ( METHOD_2 ( ) ) ; "<AssertPlaceHolder>" ; org . mockito . Mockito . verify ( connection , org . mockito . Mockito . times ( 1 ) ) . METHOD_1 ( METHOD_2 ( ) ) ; context . close ( ) ; } METHOD_3 ( ) { try { return METHOD_6 ( ) . METHOD_3 ( ) ; } catch ( javax . jms . IDENT_6 IDENT_7 ) { throw org . apache . IDENT_0 . jms . exceptions . IDENT_8 . METHOD_7 ( IDENT_7 ) ; } }
org . junit . Assert . assertNotNull ( context . METHOD_3 ( ) )