METHOD_0 ( ) { java . lang . String params = STRING_0 ; METHOD_1 ( mock ( org . pentaho . platform . web . http . api . resources . IDENT_0 . class ) ) . when ( IDENT_1 . IDENT_2 ) . METHOD_2 ( params ) ; javax . ws . rs . core . Response IDENT_3 = mock ( javax . ws . rs . core . Response . class ) ; doReturn ( IDENT_3 ) . when ( IDENT_1 ) . METHOD_3 ( Response . Status . IDENT_4 ) ; javax . ws . rs . core . Response IDENT_5 = IDENT_1 . METHOD_4 ( params , null ) ; "<AssertPlaceHolder>" ; verify ( IDENT_1 . IDENT_2 , times ( 1 ) ) . METHOD_2 ( params ) ; verify ( IDENT_1 ) . METHOD_3 ( Response . Status . IDENT_4 ) ; } METHOD_4 ( java . lang . String , java . lang . Integer ) { if ( IDENT_6 != null ) { boolean IDENT_7 = IDENT_2 . METHOD_5 ( params , IDENT_6 ) ; return IDENT_7 ? METHOD_6 ( ) : METHOD_3 ( Response . Status . IDENT_4 ) ; } else { try { IDENT_2 . METHOD_2 ( params ) ; return METHOD_6 ( ) ; } catch ( org . pentaho . platform . api . IDENT_8 . IDENT_9 . IDENT_10 e ) { if ( ! ( IDENT_2 . METHOD_7 ( METHOD_8 ( ) , params ) ) ) { return METHOD_3 ( Response . Status . IDENT_11 ) ; } else { return METHOD_3 ( Response . Status . IDENT_12 ) ; } } catch ( java . lang . IDENT_0 e ) { org . pentaho . platform . web . http . api . resources . IDENT_13 . logger . error ( org . pentaho . platform . web . http . messages . IDENT_14 . getInstance ( ) . getString ( STRING_1 ) , e ) ; return METHOD_3 ( Response . Status . IDENT_4 ) ; } } }
org . junit . Assert . assertEquals ( IDENT_3 , IDENT_5 )