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 ( 10 ) . METHOD_8 ( Integer . MAX_VALUE ) . build ( ) ; final org . apache . IDENT_0 . IDENT_5 IDENT_6 = new org . apache . IDENT_0 . METHOD_9 ( INT_1 , INT_2 , 0L ) ; org . mockito . Mockito . METHOD_10 ( new org . mockito . IDENT_7 . METHOD_11 ( ) { @ org . apache . IDENT_0 . client . Override public java . lang . Object METHOD_12 ( org . mockito . IDENT_8 . IDENT_9 IDENT_8 ) throws java . lang . Throwable { return com . IDENT_10 . util . IDENT_11 . value ( IDENT_6 ) ; } } ) . when ( client ) . METHOD_13 ( ( ( java . lang . String ) ( any ( ) ) ) , ( ( org . apache . IDENT_0 . IDENT_12 ) ( any ( ) ) ) ) ; byte [ ] data = STRING_2 . getBytes ( org . apache . IDENT_0 . client . UTF_8 ) ; java . nio . ByteBuffer buffer = java . nio . ByteBuffer . METHOD_14 ( data ) ; com . IDENT_10 . util . IDENT_11 < org . apache . IDENT_0 . METHOD_9 > IDENT_13 = writer . write ( buffer ) ; org . apache . IDENT_0 . METHOD_9 IDENT_14 = com . IDENT_10 . util . IDENT_15 . result ( IDENT_13 ) ; "<AssertPlaceHolder>" ; writer . close ( ) ; } result ( com . IDENT_10 . util . IDENT_11 ) { return org . apache . IDENT_0 . util . IDENT_16 . result ( result , com . IDENT_10 . util . IDENT_17 . METHOD_15 ( ) ) ; }
org . junit . Assert . assertEquals ( IDENT_6 , IDENT_14 )