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 ) ; when ( IDENT_8 . apply ( any ( ) ) ) . thenReturn ( "foo" ) ; java . lang . String result = storage . METHOD_5 ( IDENT_8 ) ; "<AssertPlaceHolder>" ; verify ( IDENT_8 ) . apply ( IDENT_7 ) ; verify ( IDENT_7 ) . commit ( ) ; verify ( IDENT_7 , METHOD_6 ( ) ) . METHOD_7 ( ) ; } is ( com . spotify . IDENT_0 . api . IDENT_9 ) { return new org . hamcrest . IDENT_10 < com . spotify . IDENT_0 . api . IDENT_11 . IDENT_12 > ( ) { @ com . spotify . IDENT_0 . api . Override MOD_0 boolean METHOD_8 ( com . spotify . IDENT_0 . api . IDENT_11 . IDENT_12 item ) { return ( item . METHOD_9 ( ) ) == ( version . METHOD_9 ( ) ) ; } @ com . spotify . IDENT_0 . api . Override public void METHOD_10 ( org . hamcrest . IDENT_13 description ) { description . METHOD_11 ( STRING_0 ) ; description . METHOD_12 ( version ) ; } } ; }
org . junit . Assert . assertThat ( result , org . hamcrest . Matchers . is ( "foo" ) )