METHOD_0 ( ) { when ( transaction . METHOD_1 ( IDENT_0 . id ( ) ) ) . thenReturn ( java . util . Optional . of ( IDENT_0 ) ) ; final java . lang . RuntimeException IDENT_1 = new java . lang . RuntimeException ( STRING_0 ) ; try { IDENT_2 . store ( IDENT_0 , ( IDENT_3 ) -> { throw IDENT_1 ; } ) ; } catch ( java . lang . RuntimeException e ) { "<AssertPlaceHolder>" ; } verify ( transaction ) . METHOD_1 ( IDENT_0 . id ( ) ) ; METHOD_2 ( transaction ) ; } is ( com . spotify . IDENT_4 . api . IDENT_5 ) { return new org . hamcrest . IDENT_6 < com . spotify . IDENT_4 . api . IDENT_7 . IDENT_8 > ( ) { @ com . spotify . IDENT_4 . api . Override MOD_0 boolean METHOD_3 ( com . spotify . IDENT_4 . api . IDENT_7 . IDENT_8 item ) { return ( item . METHOD_4 ( ) ) == ( version . METHOD_4 ( ) ) ; } @ com . spotify . IDENT_4 . api . Override public void METHOD_5 ( org . hamcrest . IDENT_9 description ) { description . METHOD_6 ( STRING_1 ) ; description . METHOD_7 ( version ) ; } } ; }
org . junit . Assert . assertThat ( e , org . hamcrest . Matchers . is ( IDENT_1 ) )