METHOD_0 ( ) { org . pentaho . IDENT_0 . engine . IDENT_1 . core . Element IDENT_2 = mock ( org . pentaho . IDENT_0 . engine . IDENT_1 . core . Element . class ) ; org . pentaho . IDENT_0 . engine . IDENT_1 . core . metadata . IDENT_3 [ ] expected = new org . pentaho . IDENT_0 . engine . IDENT_1 . core . metadata . IDENT_3 [ ] { mock ( org . pentaho . IDENT_0 . engine . IDENT_1 . core . metadata . IDENT_3 . class ) } ; doReturn ( expected ) . when ( IDENT_4 ) . METHOD_1 ( IDENT_5 , element , null , IDENT_2 , null ) ; org . pentaho . IDENT_0 . engine . IDENT_1 . core . metadata . IDENT_3 [ ] result = IDENT_5 . METHOD_1 ( element , null , IDENT_2 , null ) ; "<AssertPlaceHolder>" ; } METHOD_1 ( org . pentaho . IDENT_0 . engine . IDENT_1 . core . metadata . IDENT_6 , org . pentaho . IDENT_0 . engine . IDENT_1 . core . IDENT_7 , org . pentaho . IDENT_0 . IDENT_8 . IDENT_9 . IDENT_10 , java . lang . Object ) { if ( element == null ) { throw new java . lang . METHOD_2 ( ) ; } if ( IDENT_11 == null ) { throw new java . lang . METHOD_2 ( ) ; } final java . lang . String IDENT_12 = IDENT_5 . METHOD_3 ( ) ; if ( STRING_0 . equals ( IDENT_12 ) ) { final org . pentaho . IDENT_0 . IDENT_8 . IDENT_9 . IDENT_13 IDENT_14 = METHOD_4 ( element ) ; final org . pentaho . IDENT_0 . IDENT_8 . IDENT_9 . IDENT_13 IDENT_15 = METHOD_5 ( element ) ; if ( IDENT_16 instanceof org . pentaho . IDENT_0 . IDENT_8 . IDENT_9 . IDENT_13 ) { final org . pentaho . IDENT_0 . IDENT_8 . IDENT_9 . IDENT_13 path = ( ( org . pentaho . IDENT_0 . IDENT_8 . IDENT_9 . IDENT_13 ) ( IDENT_16 ) ) ; final boolean IDENT_17 = org . pentaho . IDENT_0 . IDENT_8 . IDENT_18 . IDENT_19 . METHOD_6 ( IDENT_15 , path ) ; return new org . pentaho . IDENT_0 . engine . IDENT_1 . core . metadata . IDENT_3 [ ] { new org . pentaho . IDENT_0 . engine . IDENT_1 . core . metadata . METHOD_7 ( path , IDENT_17 ) } ; } else if ( ( IDENT_16 instanceof java . lang . String ) && ( IDENT_14 != null ) ) { try { final org . pentaho . IDENT_0 . IDENT_8 . IDENT_9 . IDENT_13 path = IDENT_11 . METHOD_8 ( IDENT_14 , java . lang . String . valueOf ( IDENT_16 ) ) ; final boolean IDENT_17 = ( org . pentaho . IDENT_0 . IDENT_8 . IDENT_18 . IDENT_19 . METHOD_6 ( IDENT_15 , path ) ) == false ; return new org . pentaho . IDENT_0 . engine . IDENT_1 . core . metadata . METHOD_7 [ ] { new org . pentaho . IDENT_0 . engine . IDENT_1 . core . metadata . METHOD_7 ( path , IDENT_17 ) } ; } catch ( org . pentaho . IDENT_0 . IDENT_8 . IDENT_9 . IDENT_20 IDENT_21 ) { } } else if ( IDENT_16 != null ) { try { final org . pentaho . IDENT_0 . IDENT_8 . IDENT_9 . IDENT_13 path = IDENT_11 . METHOD_9 ( IDENT_16 ) ; final boolean IDENT_17 = ( org . pentaho . IDENT_0 . IDENT_8 . IDENT_18 . IDENT_19 . METHOD_6 ( IDENT_15 , path ) ) == false ; return new org . pentaho . IDENT_0 . engine . IDENT_1 . core . metadata . METHOD_7 [ ] { new org . pentaho . IDENT_0 . engine . IDENT_1 . core . metadata . METHOD_7 ( path , IDENT_17 ) } ; } catch ( org . pentaho . IDENT_0 . IDENT_8 . IDENT_9 . IDENT_20 IDENT_21 ) { } } } return org . pentaho . IDENT_0 . engine . IDENT_1 . core . metadata . IDENT_22 . IDENT_23 ; }
org . junit . Assert . assertThat ( result , org . hamcrest . CoreMatchers . is ( org . hamcrest . CoreMatchers . equalTo ( expected ) ) )