METHOD_0 ( ) { int index = 1 ; when ( IDENT_0 . METHOD_1 ( org . pentaho . di . ui . repo . controller . IDENT_1 . IDENT_2 ) ) . thenReturn ( IDENT_3 ) ; when ( IDENT_0 . METHOD_2 ( IDENT_3 ) ) . thenReturn ( index ) ; boolean result = controller . METHOD_3 ( org . pentaho . di . ui . repo . controller . IDENT_1 . IDENT_2 ) ; "<AssertPlaceHolder>" ; } METHOD_3 ( java . lang . String ) { for ( int i = 0 ; i < ( IDENT_0 . METHOD_4 ( ) ) ; i ++ ) { org . pentaho . di . repository . IDENT_4 IDENT_3 = IDENT_0 . METHOD_5 ( i ) ; IDENT_3 . METHOD_6 ( IDENT_3 . getName ( ) . equals ( name ) ) ; } try { IDENT_0 . METHOD_7 ( ) ; } catch ( org . pentaho . di . core . exception . IDENT_5 IDENT_6 ) { org . pentaho . di . ui . repo . controller . IDENT_7 . log . METHOD_8 ( STRING_0 , IDENT_6 ) ; return false ; } return true ; }
org . junit . Assert . assertEquals ( true , result )