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 ) ; java . lang . String [ ] IDENT_5 = new java . lang . String [ ] { } ; doReturn ( model ) . when ( factory ) . METHOD_1 ( parameters , org . pentaho . IDENT_0 . engine . IDENT_1 . core . IDENT_6 . IDENT_7 . IDENT_8 . sql . IDENT_9 . IDENT_10 , IDENT_5 ) ; javax . IDENT_3 . table . IDENT_4 result = factory . METHOD_2 ( org . pentaho . IDENT_0 . engine . IDENT_1 . core . IDENT_6 . IDENT_7 . IDENT_8 . sql . IDENT_9 . IDENT_10 , parameters ) ; "<AssertPlaceHolder>" ; } METHOD_2 ( java . lang . String , org . pentaho . IDENT_0 . engine . IDENT_1 . core . IDENT_2 ) { if ( query == null ) { throw new java . lang . METHOD_3 ( STRING_0 ) ; } final java . lang . String IDENT_11 = METHOD_4 ( query ) ; if ( IDENT_11 == null ) { throw new org . pentaho . IDENT_0 . engine . IDENT_1 . core . METHOD_5 ( ( ( STRING_1 + query ) + STRING_2 ) ) ; } return super . METHOD_2 ( IDENT_11 , parameters ) ; }
org . junit . Assert . assertThat ( result , org . hamcrest . CoreMatchers . is ( org . hamcrest . CoreMatchers . equalTo ( model ) ) )