METHOD_0 ( ) { java . io . ByteArrayOutputStream IDENT_0 = new java . io . ByteArrayOutputStream ( ) ; byte [ ] expected = org . apache . commons . io . IDENT_1 . METHOD_1 ( new java . io . File ( com . google . common . io . IDENT_2 . getResource ( STRING_0 ) . getPath ( ) ) ) ; com . streamsets . pipeline . lib . generator . IDENT_3 IDENT_4 = METHOD_2 ( IDENT_0 , STRING_1 , STRING_2 , true ) ; com . streamsets . pipeline . api . IDENT_5 record = METHOD_3 ( ) . METHOD_4 ( STRING_3 0 ) ; java . util . Map < java . lang . String , com . streamsets . pipeline . api . Field > IDENT_6 = new java . util . HashMap ( ) ; IDENT_6 . put ( STRING_3 2 , com . streamsets . pipeline . api . Field . create ( STRING_4 ) ) ; IDENT_6 . put ( STRING_5 , com . streamsets . pipeline . api . Field . create ( Field . Type . IDENT_7 , null ) ) ; IDENT_6 . put ( STRING_6 , com . streamsets . pipeline . api . Field . create ( com . google . common . collect . ImmutableList . of ( com . streamsets . pipeline . api . Field . create ( 1 ) , com . streamsets . pipeline . api . Field . create ( 2 ) ) ) ) ; java . util . Map < java . lang . String , com . streamsets . pipeline . api . Field > IDENT_8 = com . google . common . collect . ImmutableMap . of ( STRING_7 , com . streamsets . pipeline . api . Field . create ( STRING_3 1 ) , STRING_8 , com . streamsets . pipeline . api . Field . create ( STRING_9 ) ) ; IDENT_6 . put ( STRING_3 , com . streamsets . pipeline . api . Field . create ( IDENT_8 ) ) ; record . set ( com . streamsets . pipeline . api . Field . create ( IDENT_6 ) ) ; IDENT_4 . write ( record ) ; IDENT_4 . METHOD_5 ( ) ; IDENT_4 . close ( ) ; "<AssertPlaceHolder>" ; } close ( ) { generator . close ( ) ; }
org . junit . Assert . assertArrayEquals ( expected , IDENT_0 . toByteArray ( ) )