METHOD_0 ( ) { when ( IDENT_0 . METHOD_1 ( IDENT_1 ) ) . thenReturn ( uk . gov . IDENT_2 . services . IDENT_3 . jms . IDENT_4 . IDENT_5 ) ; when ( session . METHOD_2 ( uk . gov . IDENT_2 . services . IDENT_3 . jms . IDENT_4 . IDENT_5 ) ) . thenReturn ( IDENT_6 ) ; when ( IDENT_1 . metadata ( ) ) . thenReturn ( metadata ) ; when ( metadata . name ( ) ) . thenReturn ( uk . gov . IDENT_2 . services . IDENT_3 . jms . IDENT_4 . IDENT_7 ) ; javax . jms . IDENT_8 IDENT_9 = IDENT_10 . METHOD_3 ( IDENT_1 , session ) ; "<AssertPlaceHolder>" ; verify ( IDENT_6 ) . METHOD_4 ( uk . gov . IDENT_2 . services . IDENT_3 . jms . IDENT_11 . IDENT_12 , uk . gov . IDENT_2 . services . IDENT_3 . jms . IDENT_4 . IDENT_7 ) ; } METHOD_3 ( uk . gov . IDENT_2 . services . IDENT_3 . IDENT_13 , javax . jms . IDENT_14 ) { final java . lang . String IDENT_15 = IDENT_0 . METHOD_1 ( IDENT_1 ) ; try { final javax . jms . IDENT_8 IDENT_6 = session . METHOD_2 ( IDENT_15 ) ; IDENT_6 . METHOD_4 ( uk . gov . IDENT_2 . services . IDENT_3 . jms . IDENT_11 . IDENT_12 , IDENT_1 . metadata ( ) . name ( ) ) ; return IDENT_6 ; } catch ( javax . jms . IDENT_16 e ) { throw new uk . gov . IDENT_2 . services . IDENT_3 . jms . exception . METHOD_5 ( java . lang . String . format ( STRING_0 , IDENT_15 ) , e ) ; } }
org . junit . Assert . assertThat ( IDENT_9 , org . hamcrest . CoreMatchers . equalTo ( IDENT_6 ) )