METHOD_0 ( ) { org . apache . IDENT_0 . jms . message . IDENT_1 . IDENT_2 IDENT_1 = org . mockito . Mockito . mock ( org . apache . IDENT_0 . jms . message . IDENT_1 . IDENT_2 . class ) ; org . apache . IDENT_0 . jms . message . IDENT_3 message = org . mockito . Mockito . mock ( org . apache . IDENT_0 . jms . message . IDENT_4 . class ) ; org . mockito . Mockito . when ( message . METHOD_1 ( ) ) . thenReturn ( IDENT_1 ) ; org . apache . IDENT_0 . jms . message . IDENT_5 . setProperty ( message , STRING_0 , STRING_1 ) ; org . mockito . Mockito . METHOD_2 ( new javax . jms . METHOD_3 ( STRING_2 ) ) . when ( IDENT_1 ) . setProperty ( org . mockito . Mockito . anyString ( ) , org . mockito . Mockito . anyString ( ) ) ; try { org . apache . IDENT_0 . jms . message . IDENT_5 . setProperty ( message , STRING_0 , STRING_1 ) ; org . junit . Assert . fail ( STRING_3 ) ; } catch ( javax . jms . METHOD_3 ex ) { "<AssertPlaceHolder>" ; } } getMessage ( ) { return message ; }
org . junit . Assert . assertEquals ( STRING_2 , ex . getMessage ( ) )