METHOD_0 ( ) { org . apache . kafka . common . header . IDENT_0 [ ] headers = new org . apache . kafka . common . header . IDENT_0 [ ] { new org . apache . kafka . common . header . IDENT_1 . METHOD_1 ( "foo" , "value" . getBytes ( ) ) , new org . apache . kafka . common . header . IDENT_1 . METHOD_1 ( "bar" , ( ( byte [ ] ) ( null ) ) ) } ; long IDENT_2 = java . lang . System . currentTimeMillis ( ) ; org . apache . kafka . common . record . IDENT_3 [ ] records = new org . apache . kafka . common . record . IDENT_3 [ ] { new org . apache . kafka . common . record . METHOD_2 ( IDENT_2 , STRING_0 . getBytes ( ) , "value" . getBytes ( ) ) , new org . apache . kafka . common . record . METHOD_2 ( ( IDENT_2 + INT_0 ) , null , "value" . getBytes ( ) ) , new org . apache . kafka . common . record . METHOD_2 ( ( IDENT_2 + INT_1 ) , STRING_0 . getBytes ( ) , null ) , new org . apache . kafka . common . record . METHOD_2 ( ( IDENT_2 + INT_1 ) , STRING_0 . getBytes ( ) , "value" . getBytes ( ) , headers ) } ; int IDENT_4 = org . apache . kafka . common . record . IDENT_5 . METHOD_3 ( IDENT_6 . IDENT_7 , records ) . METHOD_4 ( ) ; "<AssertPlaceHolder>" ; } METHOD_4 ( java . lang . IDENT_8 ) { java . util . Iterator < org . apache . kafka . common . record . METHOD_2 > iterator = records . iterator ( ) ; if ( ! ( iterator . hasNext ( ) ) ) return 0 ; int size = org . apache . kafka . common . record . IDENT_9 . IDENT_10 ; int IDENT_11 = 0 ; java . lang . Long IDENT_12 = null ; while ( iterator . hasNext ( ) ) { org . apache . kafka . common . record . METHOD_2 record = iterator . next ( ) ; if ( IDENT_12 == null ) IDENT_12 = record . METHOD_5 ( ) ; long IDENT_13 = ( record . METHOD_5 ( ) ) - IDENT_12 ; size += org . apache . kafka . common . record . IDENT_14 . METHOD_4 ( ( IDENT_11 ++ ) , IDENT_13 , record . key ( ) , record . value ( ) , record . headers ( ) ) ; } return size ; }
org . junit . Assert . assertEquals ( IDENT_4 , org . apache . kafka . common . record . IDENT_9 . METHOD_4 ( java . util . Arrays . asList ( records ) ) )