METHOD_0 ( ) { java . lang . String path = STRING_0 ; doReturn ( path ) . when ( IDENT_0 . IDENT_1 ) . METHOD_1 ( org . pentaho . platform . web . http . api . resources . IDENT_2 . IDENT_3 ) ; doReturn ( true ) . when ( IDENT_0 ) . METHOD_2 ( path ) ; doReturn ( true ) . when ( IDENT_0 . policy ) . METHOD_3 ( IDENT_4 . IDENT_5 ) ; org . pentaho . platform . api . IDENT_6 . IDENT_7 . IDENT_8 IDENT_9 = mock ( org . pentaho . platform . api . IDENT_6 . IDENT_7 . IDENT_8 . class ) ; doReturn ( IDENT_9 ) . when ( IDENT_0 . repository ) . METHOD_4 ( path ) ; javax . ws . rs . core . Response IDENT_10 = mock ( javax . ws . rs . core . Response . class ) ; doReturn ( IDENT_10 ) . when ( IDENT_0 ) . METHOD_5 ( IDENT_9 ) ; javax . ws . rs . core . Response IDENT_11 = IDENT_0 . METHOD_5 ( org . pentaho . platform . web . http . api . resources . IDENT_2 . IDENT_3 ) ; "<AssertPlaceHolder>" ; verify ( IDENT_0 . repository , times ( 1 ) ) . METHOD_4 ( path ) ; verify ( IDENT_0 . policy , times ( 1 ) ) . METHOD_3 ( IDENT_4 . IDENT_5 ) ; verify ( IDENT_0 , times ( 1 ) ) . METHOD_2 ( path ) ; verify ( IDENT_0 . IDENT_1 , times ( 1 ) ) . METHOD_1 ( org . pentaho . platform . web . http . api . resources . IDENT_2 . IDENT_3 ) ; } METHOD_5 ( org . pentaho . platform . api . IDENT_6 . IDENT_7 . IDENT_8 ) { java . lang . String path = IDENT_12 . getPath ( ) ; final java . io . InputStream is ; try { org . pentaho . platform . plugin . services . IDENT_13 . IDENT_14 IDENT_15 = METHOD_6 ( ) ; IDENT_15 . METHOD_7 ( path ) ; IDENT_15 . METHOD_8 ( org . pentaho . platform . web . http . api . resources . IDENT_16 . IDENT_17 ) ; java . io . File IDENT_18 = IDENT_15 . METHOD_9 ( IDENT_12 ) ; is = METHOD_10 ( IDENT_18 ) ; } catch ( java . lang . Exception e ) { return METHOD_11 ( e . toString ( ) ) ; } javax . ws . rs . core . IDENT_19 IDENT_20 = METHOD_12 ( is ) ; return METHOD_13 ( IDENT_20 , org . pentaho . platform . web . http . api . resources . IDENT_16 . IDENT_21 ) ; }
org . junit . Assert . assertEquals ( IDENT_10 , IDENT_11 )