METHOD_0 ( ) { when ( IDENT_0 . METHOD_1 ( any ( ) , eq ( STRING_0 ) ) ) . 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 . parameter . IDENT_6 . METHOD_4 ( params ) ; java . util . Map < java . lang . String , java . lang . Object > IDENT_7 = new java . util . HashMap ( ) ; javax . xml . stream . IDENT_8 reader = null ; java . io . InputStream IDENT_9 = null ; try { try { IDENT_9 = IDENT_3 . METHOD_2 ( ( ( ( fr . gouv . vitam . common . model . IDENT_10 . IDENT_11 ) + "/" ) + ( fr . gouv . vitam . common . model . IDENT_10 . IDENT_12 ) ) ) ; } catch ( fr . gouv . vitam . IDENT_13 . api . exception . IDENT_14 | fr . gouv . vitam . IDENT_13 . api . exception . IDENT_15 | java . io . IOException e ) { fr . gouv . vitam . IDENT_16 . common . utils . IDENT_17 . LOGGER . error ( fr . gouv . vitam . IDENT_16 . common . utils . IDENT_17 . IDENT_18 ) ; throw new fr . gouv . vitam . IDENT_4 . common . exception . METHOD_5 ( e ) ; } final javax . xml . stream . IDENT_19 IDENT_20 = javax . xml . stream . IDENT_19 . newInstance ( ) ; final javax . xml . IDENT_21 . IDENT_22 IDENT_23 = new javax . xml . IDENT_21 . METHOD_6 ( fr . gouv . vitam . IDENT_16 . common . utils . IDENT_17 . IDENT_24 , fr . gouv . vitam . common . IDENT_25 . IDENT_26 ) ; final javax . xml . IDENT_21 . METHOD_6 IDENT_27 = new javax . xml . IDENT_21 . METHOD_6 ( fr . gouv . vitam . IDENT_16 . common . utils . IDENT_17 . IDENT_24 , fr . gouv . vitam . common . IDENT_25 . IDENT_28 ) ; final javax . xml . IDENT_21 . METHOD_6 IDENT_29 = new javax . xml . IDENT_21 . METHOD_6 ( fr . gouv . vitam . IDENT_16 . common . utils . IDENT_17 . IDENT_24 , fr . gouv . vitam . common . IDENT_25 . IDENT_30 ) ; final javax . xml . IDENT_21 . METHOD_6 IDENT_31 = new javax . xml . IDENT_21 . METHOD_6 ( fr . gouv . vitam . IDENT_16 . common . utils . IDENT_17 . IDENT_24 , fr . gouv . vitam . common . IDENT_25 . IDENT_32 ) ; final javax . xml . IDENT_21 . METHOD_6 IDENT_33 = new javax . xml . IDENT_21 . METHOD_6 ( fr . gouv . vitam . IDENT_16 . common . utils . IDENT_17 . IDENT_24 , fr . gouv . vitam . common . IDENT_25 . IDENT_34 ) ; final javax . xml . IDENT_21 . METHOD_6 IDENT_35 = new javax . xml . IDENT_21 . METHOD_6 ( fr . gouv . vitam . IDENT_16 . common . utils . IDENT_17 . IDENT_24 , fr . gouv . vitam . common . IDENT_25 . IDENT_36 ) ; final javax . xml . IDENT_21 . METHOD_6 IDENT_37 = new javax . xml . IDENT_21 . METHOD_6 ( fr . gouv . vitam . IDENT_16 . common . utils . IDENT_17 . IDENT_24 , fr . gouv . vitam . common . IDENT_25 . IDENT_38 ) ; final javax . xml . IDENT_21 . METHOD_6 IDENT_39 = new javax . xml . IDENT_21 . METHOD_6 ( fr . gouv . vitam . IDENT_16 . common . utils . IDENT_17 . IDENT_24 , fr . gouv . vitam . common . IDENT_25 . IDENT_40 ) ; java . lang . StringBuffer IDENT_41 = new java . lang . StringBuffer ( ) ; reader = IDENT_20 . METHOD_7 ( IDENT_9 ) ; while ( true ) { final javax . xml . stream . events . IDENT_42 event = reader . METHOD_8 ( ) ; if ( event . METHOD_9 ( ) ) { final javax . xml . stream . events . IDENT_43 element = event . METHOD_10 ( ) ; if ( element . getName ( ) . equals ( IDENT_31 ) ) { IDENT_7 . put ( IDENT_25 . IDENT_32 , reader . METHOD_11 ( ) ) ; } if ( element . getName ( ) . equals ( IDENT_23 ) ) { IDENT_7 . put ( IDENT_25 . IDENT_26 , reader . METHOD_11 ( ) ) ; } if ( element . getName ( ) . equals ( IDENT_35 ) ) { IDENT_7 . put ( IDENT_25 . IDENT_36 , reader . METHOD_11 ( ) ) ; } if ( element . getName ( ) . equals ( IDENT_29 ) ) { IDENT_7 . put ( IDENT_25 . IDENT_30 , reader . METHOD_11 ( ) ) ; } if ( element . getName ( ) . equals ( IDENT_33 ) ) { if ( ! ( "" . equals ( IDENT_41 . toString ( ) ) ) ) { IDENT_41 . append ( ( STRING_1 + ( reader . METHOD_11 ( ) ) ) ) ; } else { IDENT_41 . append ( reader . METHOD_11 ( ) ) ; } } if ( element . getName ( ) . equals ( IDENT_27 ) ) { IDENT_7 . put ( IDENT_25 . IDENT_28 , reader . METHOD_11 ( ) ) ; } if ( element . getName ( ) . equals ( IDENT_37 ) ) { IDENT_7 . put ( IDENT_25 . IDENT_38 , reader . METHOD_11 ( ) ) ; } if ( element . getName ( ) . equals ( IDENT_39 ) ) { IDENT_7 . put ( IDENT_25 . IDENT_40 , reader . METHOD_11 ( ) ) ; } } if ( event . METHOD_12 ( ) ) { break ; } } if ( ( IDENT_41 . length ( ) ) > 0 ) { IDENT_7 . put ( IDENT_25 . IDENT_34 , IDENT_41 . toString ( ) ) ; } } catch ( final javax . xml . stream . IDENT_44 e ) { fr . gouv . vitam . IDENT_16 . common . utils . IDENT_17 . LOGGER . error ( fr . gouv . vitam . IDENT_16 . common . utils . IDENT_17 . IDENT_45 , e ) ; throw new fr . gouv . vitam . IDENT_4 . common . exception . METHOD_5 ( e ) ; } finally { try { if ( reader != null ) { reader . close ( ) ; } } catch ( final javax . xml . stream . IDENT_44 e ) { IDENT_46 . IDENT_47 . METHOD_13 ( e ) ; } fr . gouv . vitam . common . stream . IDENT_48 . METHOD_14 ( IDENT_9 ) ; } return IDENT_7 ; }
org . junit . Assert . assertEquals ( 3 , utils . METHOD_3 ( params ) . size ( ) )