METHOD_0 ( ) { java . util . ArrayList < java . lang . Object > records = new java . util . ArrayList ( ) ; when ( IDENT_0 . METHOD_1 ( ) ) . thenReturn ( records ) ; org . talend . IDENT_1 . IDENT_2 . runtime . IDENT_3 < java . lang . Object > writer = new org . talend . IDENT_1 . IDENT_2 . runtime . METHOD_2 ( IDENT_0 , IDENT_4 ) ; java . lang . IDENT_5 < java . lang . Object > IDENT_6 = writer . METHOD_1 ( ) ; "<AssertPlaceHolder>" ; writer . close ( ) ; } METHOD_1 ( ) { java . lang . IDENT_5 IDENT_7 = IDENT_0 . METHOD_1 ( ) ; if ( IDENT_7 == null ) { throw new java . lang . METHOD_3 ( STRING_0 ) ; } if ( IDENT_8 ) { java . util . Iterator < ? > IDENT_9 = IDENT_7 . iterator ( ) ; if ( IDENT_9 . hasNext ( ) ) { java . lang . Object IDENT_10 = IDENT_9 . next ( ) ; if ( org . talend . components . common . component . runtime . IDENT_11 . METHOD_4 ( IDENT_10 ) ) { org . apache . avro . IDENT_12 . IDENT_13 IDENT_14 = ( ( org . apache . avro . IDENT_12 . IDENT_13 ) ( IDENT_10 ) ) ; IDENT_15 = new org . talend . IDENT_1 . IDENT_2 . runtime . METHOD_5 ( IDENT_4 ) ; ( ( org . talend . IDENT_1 . IDENT_2 . runtime . METHOD_5 ) ( IDENT_15 ) ) . METHOD_6 ( IDENT_14 ) ; } else { IDENT_15 = new org . talend . IDENT_1 . IDENT_2 . runtime . METHOD_7 ( ) ; } IDENT_16 = false ; } else { return IDENT_7 ; } } return IDENT_15 . METHOD_8 ( IDENT_7 ) ; }
org . junit . Assert . assertEquals ( records , IDENT_6 )