METHOD_0 ( ) { org . apache . avro . IDENT_0 . IDENT_1 IDENT_2 = new org . apache . avro . IDENT_0 . IDENT_3 . METHOD_1 ( org . apache . IDENT_4 . test . Person . IDENT_5 ) ; IDENT_2 . put ( "name" , STRING_0 ) ; IDENT_2 . put ( STRING_1 , INT_0 ) ; IDENT_2 . put ( STRING_2 , com . google . common . collect . Lists . newArrayList ( STRING_3 , STRING_4 ) ) ; METHOD_2 ( com . google . common . collect . Lists . newArrayList ( IDENT_2 ) , Person . IDENT_6 . ) ; org . apache . IDENT_4 . io . IDENT_7 . IDENT_8 < org . apache . avro . IDENT_0 . IDENT_1 > IDENT_9 = org . apache . IDENT_4 . io . IDENT_7 . IDENT_8 . builder ( Person . IDENT_6 . ) . METHOD_3 ( STRING_1 ) . build ( new org . apache . hadoop . fs . Path ( IDENT_10 . getAbsolutePath ( ) ) ) ; org . apache . IDENT_4 . IDENT_11 pipeline = new org . apache . IDENT_4 . impl . IDENT_12 . METHOD_4 ( org . apache . IDENT_4 . io . IDENT_7 . IDENT_13 . class , IDENT_14 . METHOD_5 ( ) ) ; org . apache . IDENT_4 . IDENT_15 < org . apache . avro . IDENT_0 . IDENT_1 > IDENT_16 = pipeline . read ( IDENT_9 ) ; java . io . File IDENT_17 = IDENT_14 . METHOD_6 ( STRING_5 ) ; org . apache . IDENT_4 . IDENT_18 IDENT_10 = org . apache . IDENT_4 . io . IDENT_19 . METHOD_7 ( IDENT_17 . getAbsolutePath ( ) ) ; IDENT_16 . write ( METHOD_7 ) ; pipeline . METHOD_8 ( ) ; org . apache . IDENT_4 . IDENT_11 IDENT_20 = new org . apache . IDENT_4 . impl . IDENT_12 . METHOD_4 ( org . apache . IDENT_4 . io . IDENT_7 . IDENT_13 . class , IDENT_14 . METHOD_5 ( ) ) ; org . apache . IDENT_4 . IDENT_15 < org . apache . avro . IDENT_0 . IDENT_3 . METHOD_1 > IDENT_21 = IDENT_20 . read ( new org . apache . IDENT_4 . io . avro . IDENT_22 < org . apache . avro . IDENT_0 . IDENT_3 . METHOD_1 > ( new org . apache . hadoop . fs . Path ( IDENT_17 . getAbsolutePath ( ) ) , org . apache . IDENT_4 . types . avro . IDENT_23 . METHOD_9 ( IDENT_9 . METHOD_10 ( ) ) ) ) ; org . apache . avro . IDENT_0 . IDENT_3 . METHOD_1 person = com . google . common . collect . IDENT_24 . METHOD_11 ( IDENT_21 . METHOD_12 ( ) ) ; "<AssertPlaceHolder>" ; try { person . get ( 1 ) ; org . junit . Assert . fail ( STRING_6 ) ; } catch ( java . lang . IDENT_25 e ) { } } get ( int ) { switch ( index ) { case 0 : return first ; case 1 : return IDENT_26 ; case 2 : return IDENT_27 ; default : throw new java . lang . METHOD_13 ( ) ; } }
org . junit . Assert . assertEquals ( person . get ( 0 ) , INT_0 )