METHOD_0 ( ) { final com . spotify . IDENT_0 . storage . IDENT_1 storage = new com . spotify . IDENT_0 . storage . METHOD_1 ( datastore , java . time . IDENT_2 . IDENT_3 , IDENT_4 , executor ) ; final com . spotify . IDENT_0 . storage . IDENT_5 transaction = datastore . METHOD_2 ( ) ; final com . spotify . IDENT_0 . storage . IDENT_6 IDENT_7 = METHOD_3 ( new com . spotify . IDENT_0 . storage . METHOD_4 ( transaction ) ) ; when ( IDENT_4 . apply ( any ( ) ) ) . thenReturn ( IDENT_7 ) ; final java . lang . Exception IDENT_8 = new com . spotify . IDENT_0 . storage . IDENT_9 . METHOD_5 ( ) ; when ( IDENT_10 . apply ( any ( ) ) ) . METHOD_6 ( IDENT_8 ) ; try { storage . METHOD_7 ( IDENT_10 ) ; org . junit . Assert . fail ( STRING_0 ) ; } catch ( com . spotify . IDENT_0 . storage . IDENT_9 . METHOD_5 e ) { "<AssertPlaceHolder>" ; } verify ( IDENT_10 ) . apply ( IDENT_7 ) ; verify ( IDENT_7 , METHOD_8 ( ) ) . commit ( ) ; verify ( IDENT_7 ) . METHOD_9 ( ) ; } is ( com . spotify . IDENT_0 . api . IDENT_11 ) { return new org . hamcrest . IDENT_12 < com . spotify . IDENT_0 . api . IDENT_13 . IDENT_14 > ( ) { @ com . spotify . IDENT_0 . api . Override MOD_0 boolean METHOD_10 ( com . spotify . IDENT_0 . api . IDENT_13 . IDENT_14 item ) { return ( item . METHOD_11 ( ) ) == ( version . METHOD_11 ( ) ) ; } @ com . spotify . IDENT_0 . api . Override public void METHOD_12 ( org . hamcrest . IDENT_15 description ) { description . METHOD_13 ( STRING_1 ) ; description . METHOD_14 ( version ) ; } } ; }
org . junit . Assert . assertThat ( e , org . hamcrest . Matchers . is ( IDENT_8 ) )