METHOD_0 ( ) { java . util . List < org . apache . avro . Schema . Field > fields = new java . util . ArrayList ( ) ; for ( org . apache . avro . Schema . Field f : org . apache . avro . IDENT_0 . IDENT_1 . getType ( STRING_0 ) . METHOD_1 ( ) ) fields . add ( new org . apache . avro . Schema . Field ( f . name ( ) , f . schema ( ) , null , null ) ) ; fields . add ( new org . apache . avro . Schema . Field ( STRING_1 , org . apache . avro . Schema . create ( Schema . Type . IDENT_2 ) , null , true ) ) ; org . apache . avro . Schema record = org . apache . avro . Schema . METHOD_2 ( STRING_0 , null , STRING_2 , false ) ; record . METHOD_3 ( fields ) ; org . apache . avro . IDENT_3 protocol = new org . apache . avro . METHOD_4 ( STRING_3 , STRING_2 ) ; java . util . List < org . apache . avro . Schema . Field > params = new java . util . ArrayList ( ) ; params . add ( new org . apache . avro . Schema . Field ( STRING_4 1 , record , null , null ) ) ; org . apache . avro . METHOD_4 . Message message = protocol . METHOD_5 ( STRING_4 0 , null , new java . util . IDENT_4 < java . lang . String , java . lang . String > ( ) , org . apache . avro . Schema . METHOD_2 ( params ) , record , org . apache . avro . Schema . METHOD_6 ( new java . util . ArrayList ( ) ) ) ; protocol . METHOD_7 ( ) . put ( STRING_4 0 , message ) ; try ( org . apache . avro . IDENT_5 . IDENT_6 t = new org . apache . avro . IDENT_5 . METHOD_8 ( new java . net . METHOD_9 ( org . apache . avro . IDENT_0 . server . METHOD_10 ( ) ) ) ) { org . apache . avro . IDENT_5 . IDENT_7 . IDENT_8 r = new org . apache . avro . IDENT_5 . IDENT_7 . METHOD_11 ( protocol , t ) ; org . apache . avro . IDENT_7 . IDENT_9 args = new org . apache . avro . IDENT_7 . IDENT_10 . METHOD_12 ( message . METHOD_13 ( ) ) ; org . apache . avro . IDENT_7 . IDENT_9 IDENT_11 = new org . apache . avro . IDENT_7 . IDENT_10 . METHOD_12 ( record ) ; IDENT_11 . put ( "name" , new org . apache . avro . util . METHOD_14 ( "foo" ) ) ; IDENT_11 . put ( STRING_5 , new org . apache . avro . IDENT_7 . IDENT_10 . METHOD_15 ( org . apache . avro . IDENT_0 . IDENT_1 . getType ( STRING_4 2 ) , STRING_6 ) ) ; IDENT_11 . put ( STRING_7 , new org . apache . avro . IDENT_7 . IDENT_10 . METHOD_16 ( org . apache . avro . IDENT_0 . IDENT_1 . getType ( STRING_4 ) , new byte [ ] { 0 , 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 , 9 , 0 , 1 , 2 , 3 , 4 , 5 } ) ) ; IDENT_11 . put ( STRING_1 , Boolean . IDENT_12 ) ; args . put ( STRING_4 1 , IDENT_11 ) ; org . apache . avro . IDENT_7 . IDENT_9 response = ( ( org . apache . avro . IDENT_7 . IDENT_9 ) ( r . request ( STRING_4 0 , args ) ) ) ; "<AssertPlaceHolder>" ; } } request ( java . lang . String , java . lang . Object ) { org . apache . avro . IDENT_5 . IDENT_13 . IDENT_14 IDENT_15 = new org . apache . avro . IDENT_5 . IDENT_13 . METHOD_17 ( IDENT_16 , request , new org . apache . avro . IDENT_5 . METHOD_18 ( ) ) ; org . apache . avro . IDENT_5 . IDENT_17 < java . lang . Object > future = ( IDENT_15 . getMessage ( ) . METHOD_19 ( ) ) ? null : new org . apache . avro . IDENT_5 . METHOD_20 ( ) ; request ( IDENT_15 , future ) ; if ( future == null ) return null ; try { return future . get ( ) ; } catch ( java . util . concurrent . IDENT_18 e ) { java . lang . Throwable error = e . METHOD_21 ( ) ; if ( error instanceof java . lang . Exception ) { throw ( ( java . lang . Exception ) ( error ) ) ; } else { throw new org . apache . avro . METHOD_22 ( error ) ; } } }
org . junit . Assert . assertEquals ( IDENT_11 , response )