METHOD_0 ( ) { org . apache . hadoop . fs . shell . find . IDENT_0 IDENT_1 = new org . apache . hadoop . fs . shell . find . METHOD_1 ( ) ; org . apache . hadoop . fs . shell . IDENT_2 IDENT_3 = mock ( org . apache . hadoop . fs . shell . IDENT_2 . class ) ; org . apache . hadoop . fs . shell . find . IDENT_4 child = mock ( org . apache . hadoop . fs . shell . find . IDENT_4 . class ) ; when ( child . apply ( IDENT_3 ) ) . thenReturn ( Result . IDENT_5 ) ; java . util . IDENT_6 < org . apache . hadoop . fs . shell . find . IDENT_4 > IDENT_7 = new java . util . IDENT_8 < org . apache . hadoop . fs . shell . find . IDENT_4 > ( ) ; IDENT_7 . add ( child ) ; IDENT_1 . METHOD_2 ( IDENT_7 ) ; "<AssertPlaceHolder>" ; verify ( child ) . apply ( IDENT_3 ) ; METHOD_3 ( child ) ; } apply ( org . apache . hadoop . fs . shell . IDENT_2 ) { for ( org . apache . hadoop . fs . shell . find . IDENT_4 child : METHOD_4 ( ) ) { org . apache . hadoop . fs . shell . find . Result result = child . apply ( item ) ; if ( result . METHOD_5 ( ) ) { return result ; } } return Result . IDENT_9 ; }
org . junit . Assert . assertEquals ( Result . IDENT_9 , IDENT_1 . apply ( IDENT_3 ) )