METHOD_0 ( ) { final java . util . List < org . apache . nifi . serialization . record . IDENT_0 > fields = new java . util . ArrayList ( ) ; fields . add ( new org . apache . nifi . serialization . record . METHOD_1 ( STRING_0 , IDENT_1 . IDENT_2 . METHOD_2 ( ) ) ) ; final org . apache . nifi . serialization . record . IDENT_3 schema = new org . apache . nifi . serialization . METHOD_3 ( fields ) ; final java . util . Map < java . lang . String , java . lang . Object > values = new java . util . HashMap ( ) ; values . put ( STRING_0 , "1" ) ; values . put ( "name" , STRING_1 ) ; final org . apache . nifi . serialization . record . IDENT_4 record = new org . apache . nifi . serialization . record . METHOD_4 ( schema , values ) ; final java . io . ByteArrayOutputStream IDENT_5 = new java . io . ByteArrayOutputStream ( ) ; try ( final org . apache . nifi . json . IDENT_6 writer = new org . apache . nifi . json . METHOD_5 ( org . mockito . Mockito . mock ( org . apache . nifi . logging . IDENT_7 . class ) , schema , new org . apache . nifi . schema . IDENT_8 . METHOD_6 ( ) , IDENT_5 , false , org . apache . nifi . record . IDENT_9 . IDENT_10 , IDENT_11 . IDENT_12 , null , null , null ) ) { writer . METHOD_7 ( ) ; writer . METHOD_8 ( record ) ; writer . METHOD_9 ( ) ; } final byte [ ] data = IDENT_5 . toByteArray ( ) ; final java . lang . String expected = STRING_2 ; final java . lang . String output = new java . lang . String ( data , java . nio . IDENT_13 . IDENT_14 . UTF_8 ) ; "<AssertPlaceHolder>" ; } toByteArray ( ) { final org . apache . nifi . IDENT_15 . IDENT_16 . IDENT_17 . IDENT_18 IDENT_17 = response . METHOD_10 ( ) ; return IDENT_19 . encode ( IDENT_17 ) ; }
org . junit . Assert . assertEquals ( expected , output )