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