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