METHOD_0 ( ) { org . apache . http . IDENT_0 response = new org . apache . http . message . METHOD_1 ( org . apache . http . IDENT_1 . IDENT_2 , org . apache . http . IDENT_3 . IDENT_4 , STRING_0 ) ; org . apache . http . entity . IDENT_5 entity = new org . apache . http . entity . METHOD_2 ( STRING_1 , org . apache . http . entity . IDENT_6 . create ( STRING_2 , STRING_3 ) ) ; response . METHOD_3 ( entity ) ; when ( IDENT_7 . METHOD_4 ( STRING_2 ) ) . thenReturn ( IDENT_8 ) ; org . springframework . IDENT_9 . client . IDENT_10 IDENT_11 = handler . METHOD_5 ( response ) ; "<AssertPlaceHolder>" ; verify ( IDENT_8 ) . process ( org . mockito . Mockito . < java . io . InputStream > any ( ) , org . mockito . Mockito . < org . springframework . http . IDENT_12 > any ( ) ) ; } METHOD_5 ( org . apache . http . IDENT_0 ) { org . apache . http . IDENT_13 IDENT_14 = response . METHOD_6 ( ) ; if ( ( IDENT_14 . getStatusCode ( ) ) >= INT_0 ) { throw new org . apache . http . client . METHOD_7 ( IDENT_14 . getStatusCode ( ) , IDENT_14 . METHOD_8 ( ) ) ; } org . apache . http . IDENT_15 entity = response . METHOD_9 ( ) ; java . io . InputStream IDENT_16 = entity . METHOD_10 ( ) ; org . apache . http . IDENT_17 IDENT_18 = entity . METHOD_11 ( ) ; org . apache . http . IDENT_19 [ ] elements = IDENT_18 . METHOD_12 ( ) ; if ( ( elements . length ) != 1 ) { throw new java . lang . IllegalArgumentException ( STRING_4 ) ; } java . lang . String IDENT_20 = elements [ 0 ] . getName ( ) ; org . springframework . IDENT_9 . client . IDENT_10 IDENT_21 = IDENT_22 . METHOD_4 ( IDENT_20 ) ; org . springframework . http . IDENT_12 IDENT_23 = METHOD_13 ( response . METHOD_14 ( ) ) ; IDENT_21 . process ( IDENT_16 , IDENT_23 ) ; return IDENT_21 ; }
org . junit . Assert . assertSame ( IDENT_8 , IDENT_11 )