METHOD_0 ( ) { com . google . common . util . concurrent . IDENT_0 < java . lang . Throwable , java . lang . String > function = new com . google . common . util . concurrent . IDENT_0 < java . lang . Throwable , java . lang . String > ( ) { @ com . spotify . IDENT_1 . Override public com . google . common . util . concurrent . IDENT_2 < java . lang . String > apply ( java . lang . Throwable input ) throws com . spotify . IDENT_1 . Exception { return METHOD_1 ( STRING_0 ) ; } } ; when ( IDENT_3 . METHOD_2 ( ) ) . thenReturn ( com . google . common . base . Optional . of ( function ) ) ; java . lang . Throwable expected = new com . spotify . IDENT_1 . METHOD_3 ( null , IDENT_4 , com . spotify . IDENT_1 . IDENT_5 . IDENT_6 ) ; com . google . common . util . concurrent . IDENT_2 < java . lang . String > future = IDENT_7 . create ( expected ) ; "<AssertPlaceHolder>" ; } create ( java . lang . Throwable ) { if ( graph . METHOD_2 ( ) . METHOD_4 ( ) ) { try { return graph . METHOD_2 ( ) . get ( ) . apply ( t ) ; } catch ( java . lang . Exception e ) { return METHOD_5 ( METHOD_6 ( e ) ) ; } } return METHOD_5 ( METHOD_6 ( t ) ) ; }
org . junit . Assert . assertThat ( future . get ( ) , org . hamcrest . CoreMatchers . equalTo ( STRING_0 ) )