METHOD_0 ( ) { org . apache . IDENT_0 . service . IDENT_1 client = mock ( org . apache . IDENT_0 . service . IDENT_1 . class ) ; org . apache . IDENT_0 . client . IDENT_2 writer = org . apache . IDENT_0 . client . IDENT_2 . METHOD_1 ( ) . streams ( com . google . common . collect . Lists . newArrayList ( STRING_0 , STRING_1 ) ) . client ( client ) . METHOD_2 ( IDENT_3 . Type . IDENT_4 ) . METHOD_3 ( 10 ) . METHOD_4 ( 20 ) . METHOD_5 ( 2 ) . METHOD_6 ( INT_0 ) . METHOD_7 ( 0 ) . METHOD_8 ( 0 ) . build ( ) ; final java . lang . String IDENT_5 = writer . METHOD_9 ( 1 ) ; final org . apache . IDENT_0 . IDENT_6 IDENT_7 = new org . apache . IDENT_0 . METHOD_10 ( INT_1 , INT_2 , 0L ) ; org . mockito . Mockito . METHOD_11 ( new org . mockito . IDENT_8 . METHOD_12 ( ) { @ org . apache . IDENT_0 . client . Override public java . lang . Object METHOD_13 ( org . mockito . IDENT_9 . IDENT_10 IDENT_9 ) throws java . lang . Throwable { java . lang . Object [ ] IDENT_11 = IDENT_9 . METHOD_14 ( ) ; java . lang . String stream = ( ( java . lang . String ) ( IDENT_11 [ 0 ] ) ) ; if ( stream . equals ( IDENT_5 ) ) { return com . IDENT_12 . util . IDENT_13 . value ( IDENT_7 ) ; } else { return new com . IDENT_12 . util . IDENT_14 < org . apache . IDENT_0 . METHOD_10 > ( ) ; } } } ) . when ( client ) . METHOD_15 ( ( ( java . lang . String ) ( any ( ) ) ) , ( ( org . apache . IDENT_0 . IDENT_15 ) ( any ( ) ) ) ) ; byte [ ] data = STRING_2 . getBytes ( org . apache . IDENT_0 . client . UTF_8 ) ; java . nio . ByteBuffer buffer = java . nio . ByteBuffer . METHOD_16 ( data ) ; com . IDENT_12 . util . IDENT_13 < org . apache . IDENT_0 . METHOD_10 > IDENT_16 = writer . write ( buffer ) ; org . apache . IDENT_0 . METHOD_10 IDENT_17 = com . IDENT_12 . util . IDENT_18 . result ( IDENT_16 ) ; "<AssertPlaceHolder>" ; writer . close ( ) ; } result ( com . IDENT_12 . util . IDENT_13 ) { return org . apache . IDENT_0 . util . IDENT_19 . result ( result , com . IDENT_12 . util . IDENT_20 . METHOD_17 ( ) ) ; }
org . junit . Assert . assertEquals ( IDENT_7 , IDENT_17 )