METHOD_0 ( ) { when ( IDENT_0 . METHOD_1 ( IDENT_1 , IDENT_2 ) ) . thenReturn ( IDENT_3 ) ; when ( IDENT_3 . METHOD_2 ( ) ) . thenReturn ( false ) ; java . lang . String IDENT_4 = ( ( org . pentaho . di . core . hadoop . IDENT_5 . IDENT_6 ) + STRING_0 ) + STRING_1 ; when ( IDENT_3 . METHOD_3 ( IDENT_7 , IDENT_2 , IDENT_8 . METHOD_4 ( ) ) ) . thenReturn ( IDENT_4 ) ; "<AssertPlaceHolder>" ; verify ( IDENT_9 ) . put ( IDENT_4 , IDENT_1 ) ; } METHOD_5 ( java . lang . String , java . lang . String , org . pentaho . IDENT_10 . api . IDENT_11 , java . util . Map ) { org . pentaho . IDENT_12 . data . api . cluster . IDENT_13 c = IDENT_14 . METHOD_1 ( IDENT_15 , IDENT_10 ) ; java . lang . String IDENT_16 ; java . lang . String IDENT_17 = null ; if ( ( url != null ) && ( ( url . indexOf ( org . pentaho . IDENT_12 . data . IDENT_18 . plugins . hdfs . job . IDENT_19 ) ) > ( - 1 ) ) ) { IDENT_16 = url ; url = IDENT_16 . substring ( ( ( IDENT_16 . indexOf ( STRING_2 , ( ( IDENT_16 . indexOf ( org . pentaho . IDENT_12 . data . IDENT_18 . plugins . hdfs . job . IDENT_19 ) ) + ( org . pentaho . IDENT_12 . data . IDENT_18 . plugins . hdfs . job . IDENT_19 . length ( ) ) ) ) ) + 1 ) ) ; IDENT_17 = IDENT_16 . substring ( 0 , ( ( IDENT_16 . indexOf ( STRING_2 , ( ( IDENT_16 . indexOf ( org . pentaho . IDENT_12 . data . IDENT_18 . plugins . hdfs . job . IDENT_19 ) ) + ( org . pentaho . IDENT_12 . data . IDENT_18 . plugins . hdfs . job . IDENT_19 . length ( ) ) ) ) ) + 1 ) ) ; } else if ( ( url != null ) && ( ( url . indexOf ( org . pentaho . IDENT_12 . data . IDENT_18 . plugins . hdfs . job . IDENT_20 ) ) > ( - 1 ) ) ) { IDENT_16 = url ; url = IDENT_16 . substring ( ( ( IDENT_16 . indexOf ( STRING_2 , ( ( IDENT_16 . indexOf ( org . pentaho . IDENT_12 . data . IDENT_18 . plugins . hdfs . job . IDENT_20 ) ) + ( org . pentaho . IDENT_12 . data . IDENT_18 . plugins . hdfs . job . IDENT_20 . length ( ) ) ) ) ) + 1 ) ) ; IDENT_17 = IDENT_16 . substring ( 0 , ( ( IDENT_16 . indexOf ( STRING_2 , ( ( IDENT_16 . indexOf ( org . pentaho . IDENT_12 . data . IDENT_18 . plugins . hdfs . job . IDENT_20 ) ) + ( org . pentaho . IDENT_12 . data . IDENT_18 . plugins . hdfs . job . IDENT_20 . length ( ) ) ) ) ) + 1 ) ) ; } if ( c != null ) { url = c . METHOD_3 ( url , IDENT_10 , METHOD_4 ( ) ) ; } if ( IDENT_17 != null ) { url = IDENT_17 + url ; } if ( ( ! ( org . pentaho . di . core . IDENT_21 . isEmpty ( IDENT_15 ) ) ) && ( ! ( org . pentaho . di . core . IDENT_21 . isEmpty ( url ) ) ) ) { IDENT_9 . put ( url , IDENT_15 ) ; } return url ; }
org . junit . Assert . assertEquals ( IDENT_4 , IDENT_8 . METHOD_5 ( IDENT_7 , IDENT_1 , IDENT_2 , IDENT_9 ) )