METHOD_0 ( ) { java . lang . String IDENT_0 = STRING_0 ; java . lang . String IDENT_1 = STRING_1 ; org . pentaho . platform . web . http . api . resources . services . IDENT_2 . IDENT_3 IDENT_4 = mock ( IDENT_2 . IDENT_3 . class ) ; doReturn ( IDENT_4 ) . when ( IDENT_5 . IDENT_6 ) . METHOD_1 ( IDENT_0 , org . pentaho . platform . web . http . api . resources . IDENT_7 . IDENT_8 , IDENT_1 ) ; javax . ws . rs . core . Response IDENT_9 = mock ( javax . ws . rs . core . Response . class ) ; doReturn ( IDENT_9 ) . when ( IDENT_5 ) . METHOD_2 ( IDENT_4 ) ; javax . ws . rs . core . Response IDENT_10 = IDENT_5 . METHOD_1 ( IDENT_0 , org . pentaho . platform . web . http . api . resources . IDENT_7 . IDENT_8 , IDENT_1 ) ; "<AssertPlaceHolder>" ; verify ( IDENT_5 . IDENT_6 , times ( 1 ) ) . METHOD_1 ( IDENT_0 , org . pentaho . platform . web . http . api . resources . IDENT_7 . IDENT_8 , IDENT_1 ) ; verify ( IDENT_5 ) . METHOD_2 ( IDENT_4 ) ; } METHOD_1 ( java . lang . String , java . lang . String , java . lang . String ) { java . lang . String path = METHOD_3 ( IDENT_11 ) ; METHOD_4 ( path ) ; org . pentaho . platform . api . engine . IDENT_12 policy = METHOD_5 ( ) ; java . lang . String IDENT_13 ; java . lang . String IDENT_14 = null ; if ( org . apache . commons . lang . StringUtils . isEmpty ( IDENT_11 ) ) { throw new java . security . METHOD_6 ( IDENT_11 ) ; } if ( ! ( METHOD_7 ( path ) ) ) { throw new java . nio . IDENT_15 . METHOD_8 ( ) ; } org . pentaho . platform . api . IDENT_16 . IDENT_17 . IDENT_18 IDENT_19 = METHOD_9 ( ) . METHOD_10 ( path ) ; if ( IDENT_19 == null ) { throw new java . io . METHOD_11 ( path ) ; } boolean IDENT_20 = ( STRING_2 . equals ( IDENT_1 ) ) ? false : true ; boolean IDENT_21 = ( IDENT_19 . METHOD_12 ( ) ) || IDENT_20 ; org . pentaho . platform . plugin . services . IDENT_22 . IDENT_23 IDENT_24 = METHOD_13 ( path , IDENT_21 , IDENT_20 ) ; IDENT_13 = ( IDENT_21 ) ? ( IDENT_19 . getName ( ) ) + STRING_3 : IDENT_19 . getName ( ) ; IDENT_14 = METHOD_14 ( IDENT_13 ) ; java . lang . String IDENT_25 = METHOD_15 ( IDENT_13 ) ; IDENT_24 . METHOD_16 ( METHOD_17 ( ) ) ; javax . ws . rs . core . IDENT_26 IDENT_27 = METHOD_18 ( IDENT_19 , IDENT_24 ) ; final java . lang . String IDENT_28 = METHOD_19 ( IDENT_0 , IDENT_14 , IDENT_25 ) ; return new org . pentaho . platform . web . http . api . resources . services . IDENT_2 . METHOD_20 ( IDENT_27 , IDENT_28 , IDENT_14 ) ; }
org . junit . Assert . assertEquals ( IDENT_9 , IDENT_10 )