METHOD_0 ( ) { org . apache . hadoop . fs . IDENT_0 IDENT_1 = mock ( org . apache . hadoop . fs . IDENT_0 . class ) ; org . apache . hadoop . fs . Path path = new org . apache . hadoop . fs . Path ( STRING_0 ) ; org . apache . IDENT_2 . rest . service . impl . IDENT_3 IDENT_4 = METHOD_1 ( new org . apache . IDENT_2 . rest . service . impl . METHOD_2 ( IDENT_5 , configuration , new org . apache . IDENT_2 . rest . config . METHOD_3 ( ) , new org . apache . IDENT_2 . job . manager . METHOD_4 ( ) , new org . apache . IDENT_2 . rest . service . impl . METHOD_5 ( ) ) ) ; org . apache . hadoop . fs . IDENT_6 IDENT_7 = mock ( org . apache . hadoop . fs . IDENT_6 . class ) ; doReturn ( IDENT_7 ) . when ( IDENT_4 ) . METHOD_6 ( ) ; when ( IDENT_7 . exists ( path ) ) . thenReturn ( true ) ; doReturn ( path ) . when ( IDENT_4 ) . getPath ( STRING_1 , STRING_2 , 1 ) ; when ( IDENT_7 . METHOD_7 ( path ) ) . thenReturn ( IDENT_1 ) ; "<AssertPlaceHolder>" ; } METHOD_8 ( java . lang . String , java . lang . String , java . lang . Integer ) { java . io . InputStream IDENT_1 = null ; org . apache . hadoop . fs . Path path = getPath ( IDENT_8 , IDENT_9 , page ) ; try { org . apache . hadoop . fs . IDENT_6 IDENT_7 = METHOD_6 ( ) ; if ( ( path != null ) && ( IDENT_7 . exists ( path ) ) ) { IDENT_1 = IDENT_7 . METHOD_7 ( path ) ; } } catch ( java . io . IOException e ) { throw new org . apache . IDENT_2 . rest . METHOD_9 ( e ) ; } return IDENT_1 ; }
org . junit . Assert . assertEquals ( IDENT_1 , IDENT_4 . METHOD_8 ( STRING_1 , STRING_2 , 1 ) )