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 . IDENT_7 pipeline = new org . apache . IDENT_4 . impl . IDENT_8 . METHOD_3 ( org . apache . IDENT_4 . io . IDENT_9 . IDENT_10 . class , IDENT_11 . METHOD_4 ( ) ) ; org . apache . IDENT_4 . IDENT_12 < org . apache . IDENT_4 . test . Person > IDENT_13 = pipeline . read ( org . apache . IDENT_4 . io . IDENT_14 . METHOD_5 ( METHOD_5 . getAbsolutePath ( ) , org . apache . IDENT_4 . types . avro . IDENT_15 . records ( org . apache . IDENT_4 . test . Person . class ) ) ) ; java . io . File IDENT_16 = IDENT_11 . METHOD_6 ( STRING_5 ) ; org . apache . IDENT_4 . IDENT_17 IDENT_18 = new org . apache . IDENT_4 . io . IDENT_9 . METHOD_7 ( IDENT_16 . getAbsolutePath ( ) ) ; pipeline . write ( IDENT_13 , IDENT_18 ) ; pipeline . run ( ) ; org . apache . IDENT_4 . test . Person person = IDENT_13 . METHOD_8 ( ) . iterator ( ) . next ( ) ; org . apache . hadoop . fs . Path IDENT_19 = new org . apache . hadoop . fs . Path ( new java . io . File ( IDENT_16 , STRING_6 ) . getPath ( ) ) ; org . apache . IDENT_9 . avro . IDENT_20 < org . apache . IDENT_4 . test . Person > reader = new org . apache . IDENT_9 . avro . IDENT_20 < org . apache . IDENT_4 . test . Person > ( IDENT_19 ) ; try { org . apache . IDENT_4 . test . Person IDENT_21 = reader . read ( ) ; "<AssertPlaceHolder>" ; } finally { reader . close ( ) ; } } getPath ( ) { return path ; }
org . junit . Assert . assertThat ( IDENT_21 , org . hamcrest . core . Is . is ( person ) )