METHOD_0 ( ) { java . util . concurrent . IDENT_0 < java . lang . String > f = future ( new com . IDENT_1 . IDENT_2 . IDENT_3 < java . lang . String > ( ) { public java . lang . String apply ( ) throws com . IDENT_1 . IDENT_2 . Exception { java . lang . Thread . sleep ( INT_0 ) ; return "foo" ; } } ) ; "<AssertPlaceHolder>" ; } apply ( ) { com . IDENT_1 . IDENT_2 . IDENT_4 IDENT_5 = new com . IDENT_1 . IDENT_2 . METHOD_1 ( ) { public void apply ( java . lang . String [ ] args ) throws com . IDENT_1 . IDENT_2 . Exception { IDENT_6 . apply ( args . length ) ; com . IDENT_1 . IDENT_2 . IDENT_7 . apply ( args ) . METHOD_2 ( new com . IDENT_1 . IDENT_2 . IDENT_8 < java . lang . String > ( ) { public void apply ( java . lang . String IDENT_9 ) throws com . IDENT_1 . IDENT_2 . Exception { IDENT_6 . apply ( IDENT_9 ) ; } } ) ; } } ; IDENT_5 . apply ( new java . lang . String [ ] { "a" , "b" } ) ; }
org . junit . Assert . assertThat ( f . get ( ) , org . hamcrest . CoreMatchers . is ( org . hamcrest . CoreMatchers . equalTo ( "foo" ) ) )