METHOD_0 ( ) { IDENT_0 . IDENT_1 = STRING_0 ; IDENT_0 . init ( 0 ) ; IDENT_0 . METHOD_1 ( IDENT_2 ) ; org . apache . avro . Schema schema = mock ( org . apache . avro . Schema . class ) ; when ( schema . getType ( ) ) . thenReturn ( Schema . Type . IDENT_3 ) ; "<AssertPlaceHolder>" ; IDENT_0 . METHOD_2 ( new org . apache . avro . IDENT_4 . IDENT_5 . METHOD_3 ( schema ) , mock ( org . apache . avro . Schema . class ) , mock ( org . apache . avro . Schema . class ) , false ) ; } METHOD_2 ( org . apache . avro . IDENT_4 . IDENT_6 , org . apache . avro . Schema , org . apache . avro . Schema , boolean ) { if ( record == null ) { return null ; } if ( ( IDENT_7 . size ( ) ) == 0 ) { throw new org . pentaho . di . core . exception . METHOD_4 ( org . pentaho . di . IDENT_8 . IDENT_9 . getString ( org . pentaho . di . IDENT_10 . IDENT_11 . IDENT_12 . IDENT_13 . IDENT_14 , STRING_1 ) ) ; } java . lang . String IDENT_15 = IDENT_7 . remove ( 0 ) ; if ( ( IDENT_15 . charAt ( 0 ) ) == STRING_2 ) { throw new org . pentaho . di . core . exception . METHOD_4 ( ( ( org . pentaho . di . IDENT_8 . IDENT_9 . getString ( org . pentaho . di . IDENT_10 . IDENT_11 . IDENT_12 . IDENT_13 . IDENT_14 , STRING_3 ) ) + ( IDENT_7 ) ) ) ; } if ( ( IDENT_15 . indexOf ( STRING_2 ) ) > 0 ) { java . lang . String IDENT_16 = IDENT_15 . substring ( IDENT_15 . indexOf ( STRING_2 ) ) ; IDENT_15 = IDENT_15 . substring ( 0 , IDENT_15 . indexOf ( STRING_2 ) ) ; IDENT_7 . add ( 0 , IDENT_16 ) ; } org . apache . avro . Schema . Field IDENT_17 = s . METHOD_5 ( IDENT_15 ) ; if ( ( IDENT_17 == null ) && ( ! IDENT_18 ) ) { throw new org . pentaho . di . core . exception . METHOD_4 ( org . pentaho . di . IDENT_8 . IDENT_9 . getString ( org . pentaho . di . IDENT_10 . IDENT_11 . IDENT_12 . IDENT_13 . IDENT_14 , STRING_4 , IDENT_15 ) ) ; } java . lang . Object field = record . get ( IDENT_15 ) ; if ( field == null ) { IDENT_17 = IDENT_19 . METHOD_5 ( IDENT_15 ) ; if ( ( IDENT_17 == null ) || ( ( IDENT_17 . METHOD_6 ( ) ) == null ) ) { return null ; } field = IDENT_17 . METHOD_6 ( ) ; } org . apache . avro . Schema . Type IDENT_20 = IDENT_17 . schema ( ) . getType ( ) ; org . apache . avro . Schema IDENT_21 = IDENT_17 . schema ( ) ; if ( IDENT_20 == ( Schema . Type . IDENT_22 ) ) { if ( field instanceof org . apache . avro . IDENT_4 . IDENT_23 ) { IDENT_21 = ( ( org . apache . avro . IDENT_4 . IDENT_23 ) ( field ) ) . METHOD_7 ( ) ; IDENT_20 = IDENT_21 . getType ( ) ; } else { if ( field instanceof java . util . Map ) { org . apache . avro . Schema IDENT_24 = null ; for ( org . apache . avro . Schema IDENT_25 : IDENT_21 . METHOD_8 ( ) ) { if ( ( IDENT_25 . getType ( ) ) == ( Schema . Type . IDENT_26 ) ) { IDENT_24 = IDENT_25 ; break ; } } if ( IDENT_24 == null ) { throw new org . pentaho . di . core . exception . METHOD_4 ( org . pentaho . di . IDENT_8 . IDENT_9 . getString ( org . pentaho . di . IDENT_10 . IDENT_11 . IDENT_12 . IDENT_13 . IDENT_14 , STRING_5 ) ) ; } IDENT_21 = IDENT_24 ; IDENT_20 = Schema . Type . IDENT_26 ; } else { if ( ( IDENT_27 . getType ( ) ) != ( org . pentaho . di . core . row . IDENT_28 . IDENT_29 ) ) { IDENT_21 = org . pentaho . di . IDENT_10 . IDENT_11 . IDENT_12 . IDENT_30 . METHOD_9 ( IDENT_21 ) ; IDENT_20 = IDENT_21 . getType ( ) ; } else { IDENT_21 = org . apache . avro . Schema . create ( Schema . Type . IDENT_31 ) ; IDENT_20 = IDENT_21 . getType ( ) ; } } } } if ( IDENT_20 == ( Schema . Type . IDENT_3 ) ) { return METHOD_2 ( ( ( org . apache . avro . IDENT_4 . IDENT_5 . METHOD_3 ) ( field ) ) , IDENT_21 , IDENT_19 , IDENT_18 ) ; } else if ( IDENT_20 == ( Schema . Type . IDENT_32 ) ) { return METHOD_2 ( ( ( org . apache . avro . IDENT_4 . IDENT_5 . IDENT_33 ) ( field ) ) , IDENT_21 , IDENT_19 , IDENT_18 ) ; } else if ( IDENT_20 == ( Schema . Type . IDENT_26 ) ) { return METHOD_2 ( ( ( java . util . Map < org . apache . avro . util . IDENT_34 , java . lang . Object > ) ( field ) ) , IDENT_21 , IDENT_19 , IDENT_18 ) ; } else { return METHOD_10 ( field , IDENT_21 ) ; } }
org . junit . Assert . assertNull ( IDENT_0 . METHOD_2 ( new org . apache . avro . IDENT_4 . IDENT_5 . METHOD_3 ( schema ) , mock ( org . apache . avro . Schema . class ) , mock ( org . apache . avro . Schema . class ) , true ) )