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