METHOD_0 ( ) { final java . net . IDENT_0 address = METHOD_1 ( ) ; final byte [ ] input = new byte [ INT_0 ] ; org . apache . hc . core5 . testing . IDENT_1 . IDENT_2 . IDENT_3 . METHOD_2 ( input ) ; final org . IDENT_4 . IDENT_5 < java . nio . ByteBuffer > IDENT_6 = io . IDENT_7 . IDENT_8 . METHOD_3 ( java . nio . ByteBuffer . METHOD_4 ( input ) ) ; final org . apache . hc . core5 . IDENT_1 . IDENT_9 IDENT_10 = new org . apache . hc . core5 . IDENT_1 . METHOD_5 ( IDENT_6 , input . length , null , null ) ; final org . apache . hc . core5 . http . nio . IDENT_11 request = METHOD_6 ( address , IDENT_10 ) ; final org . apache . hc . core5 . IDENT_1 . IDENT_12 consumer = new org . apache . hc . core5 . IDENT_1 . METHOD_7 ( ) ; IDENT_13 . execute ( request , consumer , org . apache . hc . core5 . testing . IDENT_1 . IDENT_2 . IDENT_14 , null ) ; final org . apache . hc . core5 . http . Message < org . apache . hc . core5 . http . IDENT_15 , org . IDENT_4 . IDENT_5 < java . nio . ByteBuffer > > response = consumer . METHOD_8 ( ) . get ( org . apache . hc . core5 . testing . IDENT_1 . IDENT_2 . IDENT_16 . METHOD_9 ( ) , org . apache . hc . core5 . testing . IDENT_1 . IDENT_2 . IDENT_16 . METHOD_10 ( ) ) ; final java . io . ByteArrayOutputStream IDENT_17 = new java . io . ByteArrayOutputStream ( ) ; final java . nio . IDENT_18 . IDENT_19 IDENT_20 = java . nio . IDENT_18 . IDENT_21 . METHOD_11 ( IDENT_17 ) ; for ( final java . nio . ByteBuffer IDENT_22 : io . IDENT_7 . IDENT_23 . METHOD_12 ( response . METHOD_13 ( ) ) . toList ( ) . METHOD_14 ( ) ) { IDENT_20 . write ( IDENT_22 ) ; } IDENT_20 . close ( ) ; final byte [ ] output = IDENT_17 . toByteArray ( ) ; "<AssertPlaceHolder>" ; } toByteArray ( ) { final java . nio . ByteBuffer IDENT_24 = this . buf . METHOD_15 ( ) ; IDENT_24 . METHOD_16 ( ) ; final byte [ ] bytes = new byte [ IDENT_24 . METHOD_17 ( ) ] ; IDENT_24 . get ( bytes ) ; return bytes ; }
org . junit . Assert . assertArrayEquals ( input , output )