METHOD_0 ( ) { when ( IDENT_0 . METHOD_1 ( any ( ) , any ( ) ) ) . thenReturn ( javax . ws . rs . core . Response . status ( Status . IDENT_1 ) . entity ( IDENT_2 ) . build ( ) ) ; when ( IDENT_3 . METHOD_2 ( any ( ) ) ) . thenReturn ( IDENT_2 ) ; "<AssertPlaceHolder>" ; } METHOD_3 ( fr . gouv . vitam . IDENT_4 . common . parameter . IDENT_5 , fr . gouv . vitam . common . model . IDENT_6 ) { fr . gouv . vitam . common . parameter . IDENT_7 . METHOD_4 ( params ) ; java . io . InputStream input = null ; try { input = METHOD_5 ( ) ; if ( METHOD_6 ( ) ) { return fr . gouv . vitam . IDENT_8 . common . utils . IDENT_9 . IDENT_10 . IDENT_11 ; } if ( ! ( METHOD_7 ( ) ) ) { return fr . gouv . vitam . IDENT_8 . common . utils . IDENT_9 . IDENT_10 . IDENT_12 ; } fr . gouv . vitam . common . xml . IDENT_13 . getInstance ( ) . METHOD_8 ( input , fr . gouv . vitam . IDENT_8 . common . utils . IDENT_9 . IDENT_14 ) ; return fr . gouv . vitam . IDENT_8 . common . utils . IDENT_9 . IDENT_10 . IDENT_15 ; } catch ( fr . gouv . vitam . IDENT_4 . common . exception . IDENT_16 | java . io . IOException e ) { return fr . gouv . vitam . IDENT_8 . common . utils . IDENT_9 . IDENT_10 . IDENT_17 ; } catch ( final javax . xml . stream . IDENT_18 e ) { return fr . gouv . vitam . IDENT_8 . common . utils . IDENT_9 . IDENT_10 . IDENT_19 ; } catch ( final org . xml . IDENT_20 . IDENT_21 e ) { if ( ( e . METHOD_9 ( ) ) == null ) { com . fasterxml . jackson . databind . IDENT_22 IDENT_23 = fr . gouv . vitam . common . json . IDENT_24 . METHOD_10 ( ) . put ( IDENT_25 . IDENT_26 , e . getMessage ( ) ) ; IDENT_27 . METHOD_11 ( IDENT_23 . toString ( ) ) ; return fr . gouv . vitam . IDENT_8 . common . utils . IDENT_9 . IDENT_10 . IDENT_28 ; } return fr . gouv . vitam . IDENT_8 . common . utils . IDENT_9 . IDENT_10 . IDENT_19 ; } finally { org . apache . commons . io . IDENT_29 . METHOD_12 ( input ) ; } }
org . junit . Assert . assertTrue ( IDENT_10 . IDENT_15 . equals ( utils . METHOD_3 ( params , new fr . gouv . vitam . common . model . METHOD_13 ( ) ) ) )