METHOD_0 ( ) { org . pentaho . IDENT_0 . engine . IDENT_1 . core . IDENT_2 parameters = mock ( org . pentaho . IDENT_0 . engine . IDENT_1 . core . IDENT_2 . class ) ; javax . IDENT_3 . table . IDENT_4 model = mock ( javax . IDENT_3 . table . IDENT_4 . class ) ; doReturn ( new java . lang . String [ ] { } ) . when ( parameters ) . METHOD_1 ( ) ; doReturn ( model ) . when ( parameters ) . get ( org . pentaho . IDENT_0 . engine . IDENT_1 . core . IDENT_5 . IDENT_6 ) ; javax . IDENT_3 . table . IDENT_4 result = factory . METHOD_2 ( org . pentaho . IDENT_0 . engine . IDENT_1 . core . IDENT_5 . IDENT_6 , parameters ) ; "<AssertPlaceHolder>" ; } METHOD_2 ( org . pentaho . IDENT_0 . engine . IDENT_1 . core . IDENT_2 , org . pentaho . IDENT_0 . engine . IDENT_1 . core . IDENT_7 ) { java . lang . String IDENT_8 = METHOD_3 ( ) ; if ( IDENT_8 == null ) { throw new org . pentaho . IDENT_0 . engine . IDENT_1 . core . METHOD_4 ( STRING_0 ) ; } final org . pentaho . di . repository . IDENT_9 repository = METHOD_5 ( ) ; try { org . pentaho . IDENT_0 . IDENT_10 . IDENT_11 . IDENT_12 IDENT_13 = context . METHOD_6 ( ) ; final org . pentaho . di . IDENT_14 . IDENT_15 IDENT_16 = METHOD_7 ( repository , IDENT_13 , context . METHOD_8 ( ) ) ; if ( METHOD_9 ( IDENT_16 ) ) { return METHOD_10 ( parameter , 1 , context , IDENT_16 ) ; } else { METHOD_11 ( parameter , context , IDENT_16 ) ; } org . pentaho . di . IDENT_14 . IDENT_17 . IDENT_18 IDENT_17 = IDENT_16 . METHOD_12 ( IDENT_8 ) ; if ( IDENT_17 == null ) { throw new org . pentaho . IDENT_0 . engine . IDENT_1 . core . METHOD_4 ( ( STRING_1 + IDENT_8 ) ) ; } final org . pentaho . di . core . row . IDENT_19 row = IDENT_16 . METHOD_13 ( METHOD_3 ( ) ) ; final org . pentaho . IDENT_0 . engine . IDENT_1 . IDENT_20 . IDENT_21 . IDENT_22 . IDENT_23 IDENT_24 = new org . pentaho . IDENT_0 . engine . IDENT_1 . IDENT_20 . IDENT_21 . IDENT_22 . METHOD_14 ( row , 1 , true ) ; return IDENT_24 . METHOD_15 ( ) ; } catch ( final org . pentaho . IDENT_0 . IDENT_10 . IDENT_25 . IDENT_26 e ) { throw new org . pentaho . IDENT_0 . engine . IDENT_1 . core . METHOD_4 ( STRING_2 , e ) ; } catch ( final org . pentaho . IDENT_0 . IDENT_10 . IDENT_25 . parser . IDENT_27 e ) { throw new org . pentaho . IDENT_0 . engine . IDENT_1 . core . METHOD_4 ( STRING_2 , e ) ; } finally { if ( repository != null ) { repository . METHOD_16 ( ) ; } } }
org . junit . Assert . assertThat ( result , org . hamcrest . CoreMatchers . is ( org . hamcrest . CoreMatchers . equalTo ( model ) ) )