METHOD_0 ( ) { fr . gouv . vitam . common . IDENT_0 . IDENT_1 . METHOD_1 ( ) . METHOD_2 ( fr . gouv . vitam . IDENT_2 . internal . core . IDENT_3 . IDENT_4 ) ; METHOD_3 ( ) ; when ( IDENT_5 . METHOD_4 ( any ( ) , any ( ) ) ) . thenReturn ( METHOD_5 ( fr . gouv . vitam . IDENT_2 . internal . core . IDENT_3 . IDENT_6 ) ) ; final javax . ws . rs . core . Response IDENT_7 = mock ( javax . ws . rs . core . Response . class ) ; when ( IDENT_7 . METHOD_6 ( java . io . InputStream . class ) ) . thenReturn ( new java . io . ByteArrayInputStream ( fr . gouv . vitam . IDENT_2 . internal . core . IDENT_3 . IDENT_6 . getBytes ( ) ) ) ; when ( IDENT_8 . METHOD_7 ( any ( ) , any ( ) , any ( ) , any ( ) ) ) . thenReturn ( IDENT_7 ) ; javax . ws . rs . core . Response response = IDENT_9 . METHOD_8 ( fr . gouv . vitam . IDENT_2 . internal . core . IDENT_3 . IDENT_10 , STRING_0 , 0 , STRING_1 ) ; "<AssertPlaceHolder>" ; java . io . InputStream entity = ( ( java . io . InputStream ) ( response . METHOD_9 ( ) ) ) ; } METHOD_8 ( java . lang . String , java . lang . String , int , java . lang . String ) { fr . gouv . vitam . common . IDENT_11 . METHOD_10 ( STRING_2 , IDENT_12 ) ; fr . gouv . vitam . common . IDENT_11 . METHOD_10 ( STRING_3 , IDENT_13 ) ; java . lang . Integer IDENT_14 = fr . gouv . vitam . common . parameter . IDENT_15 . METHOD_11 ( ) ; fr . gouv . vitam . common . IDENT_11 . METHOD_10 ( STRING_4 0 , IDENT_14 ) ; fr . gouv . vitam . common . IDENT_11 . METHOD_12 ( STRING_5 , version , 0 ) ; final fr . gouv . vitam . common . database . builder . request . IDENT_16 . IDENT_17 request = new fr . gouv . vitam . common . database . builder . request . IDENT_16 . METHOD_13 ( ) ; request . METHOD_14 ( IDENT_12 ) ; request . METHOD_15 ( STRING_4 1 , STRING_6 , STRING_4 ) ; final com . fasterxml . jackson . databind . IDENT_18 IDENT_19 = METHOD_16 ( request . METHOD_17 ( ) , IDENT_12 ) ; if ( IDENT_19 == null ) { throw new fr . gouv . vitam . IDENT_2 . internal . common . exception . METHOD_18 ( STRING_7 ) ; } fr . gouv . vitam . common . model . IDENT_20 . IDENT_21 IDENT_22 = fr . gouv . vitam . common . json . IDENT_23 . METHOD_19 ( IDENT_19 . get ( fr . gouv . vitam . IDENT_2 . internal . core . IDENT_24 . IDENT_25 ) , fr . gouv . vitam . common . model . IDENT_20 . IDENT_21 . class ) ; fr . gouv . vitam . common . model . IDENT_20 . IDENT_26 IDENT_27 = null ; if ( ( IDENT_22 . METHOD_20 ( ) ) != null ) { final java . lang . String IDENT_28 = ( IDENT_13 + STRING_8 ) + version ; for ( fr . gouv . vitam . common . model . IDENT_20 . IDENT_29 IDENT_30 : IDENT_22 . METHOD_20 ( ) ) { if ( ( ( IDENT_30 . METHOD_21 ( ) ) != null ) && ( IDENT_30 . METHOD_21 ( ) . contains ( STRING_8 ) ) ) { IDENT_30 . METHOD_22 ( IDENT_30 . METHOD_21 ( ) . split ( STRING_8 ) [ 0 ] ) ; } if ( IDENT_13 . equals ( IDENT_30 . METHOD_21 ( ) ) ) { for ( fr . gouv . vitam . common . model . IDENT_20 . IDENT_26 IDENT_31 : IDENT_30 . METHOD_23 ( ) ) { if ( IDENT_28 . equals ( IDENT_31 . METHOD_24 ( ) ) ) { IDENT_27 = IDENT_31 ; break ; } } } } } java . lang . String IDENT_32 = javax . ws . rs . core . IDENT_33 . IDENT_34 ; java . lang . String IDENT_35 = null ; java . lang . String IDENT_36 = null ; java . lang . Long size = null ; if ( IDENT_27 != null ) { if ( ( ( IDENT_27 . METHOD_25 ( ) ) != null ) && ( ! ( com . google . common . base . IDENT_37 . METHOD_26 ( IDENT_27 . METHOD_25 ( ) . METHOD_27 ( ) ) ) ) ) { IDENT_32 = IDENT_27 . METHOD_25 ( ) . METHOD_27 ( ) ; } if ( ( ( IDENT_27 . METHOD_28 ( ) ) != null ) && ( ! ( com . google . common . base . IDENT_37 . METHOD_26 ( IDENT_27 . METHOD_28 ( ) . METHOD_29 ( ) ) ) ) ) { IDENT_35 = IDENT_27 . METHOD_28 ( ) . METHOD_29 ( ) ; } IDENT_36 = IDENT_27 . getId ( ) ; size = IDENT_27 . METHOD_30 ( ) ; } if ( com . google . common . base . IDENT_37 . METHOD_26 ( IDENT_35 ) ) { IDENT_35 = IDENT_36 ; } fr . gouv . vitam . common . IDENT_38 . IDENT_39 IDENT_40 = fr . gouv . vitam . common . IDENT_38 . IDENT_41 . METHOD_31 ( IDENT_13 , version , fr . gouv . vitam . common . IDENT_0 . IDENT_1 . METHOD_1 ( ) , size , IDENT_42 ) ; try ( fr . gouv . vitam . storage . engine . client . IDENT_43 IDENT_8 = IDENT_44 . METHOD_32 ( ) ) { final javax . ws . rs . core . Response response = IDENT_8 . METHOD_7 ( fr . gouv . vitam . IDENT_2 . internal . core . IDENT_24 . IDENT_45 , IDENT_36 , IDENT_46 . IDENT_47 , IDENT_40 ) ; java . util . Map < java . lang . String , java . lang . String > headers = new java . util . HashMap ( ) ; headers . put ( IDENT_48 . IDENT_49 , IDENT_32 ) ; headers . put ( IDENT_48 . IDENT_50 , ( ( STRING_9 + IDENT_35 ) + STRING_10 ) ) ; headers . put ( IDENT_51 . IDENT_52 , IDENT_13 ) ; headers . put ( IDENT_51 . IDENT_53 , java . lang . Integer . toString ( version ) ) ; return new fr . gouv . vitam . common . stream . METHOD_33 ( response , javax . ws . rs . core . Response . Status . IDENT_54 , headers ) ; } catch ( final fr . gouv . vitam . storage . engine . client . exception . IDENT_55 e ) { throw new fr . gouv . vitam . IDENT_2 . internal . common . exception . METHOD_18 ( e ) ; } }
org . junit . Assert . assertNotNull ( response )