METHOD_0 ( ) { org . pentaho . metadata . model . IDENT_0 model = org . pentaho . metadata . IDENT_1 . domain . METHOD_1 ( STRING_0 ) ; org . pentaho . metadata . query . model . Query query = new org . pentaho . metadata . query . model . Query ( org . pentaho . metadata . IDENT_1 . domain , model ) ; org . pentaho . metadata . model . IDENT_2 IDENT_3 = model . METHOD_2 ( ( ( org . pentaho . IDENT_4 . util . IDENT_5 . METHOD_3 ( ) ) + STRING_1 ) ) ; org . pentaho . metadata . model . IDENT_6 column = IDENT_3 . METHOD_4 ( STRING_2 ) ; query . METHOD_5 ( ) . add ( new org . pentaho . metadata . query . model . METHOD_6 ( IDENT_3 , column , null ) ) ; query . METHOD_7 ( ) . add ( new org . pentaho . metadata . query . model . METHOD_8 ( org . pentaho . metadata . query . model . IDENT_7 . IDENT_8 , STRING_3 ) ) ; query . METHOD_9 ( ) . add ( new org . pentaho . metadata . query . model . METHOD_10 ( new org . pentaho . metadata . query . model . METHOD_6 ( IDENT_3 , column , null ) , METHOD_10 . Type . IDENT_9 ) ) ; org . pentaho . metadata . query . model . util . IDENT_10 helper = new org . pentaho . metadata . query . model . util . METHOD_11 ( ) ; java . lang . String xml = helper . METHOD_12 ( query ) ; org . pentaho . metadata . repository . IDENT_11 repo = new org . pentaho . metadata . repository . METHOD_13 ( ) ; try { repo . METHOD_14 ( org . pentaho . metadata . IDENT_1 . domain , true ) ; } catch ( java . lang . Exception e ) { e . printStackTrace ( ) ; org . junit . Assert . fail ( ) ; } org . pentaho . metadata . query . model . Query IDENT_12 = null ; IDENT_12 = helper . METHOD_15 ( repo , xml ) ; "<AssertPlaceHolder>" ; } METHOD_12 ( org . pentaho . metadata . query . model . Query ) { if ( query == null ) { org . pentaho . metadata . query . model . util . METHOD_11 . logger . error ( org . pentaho . metadata . messages . IDENT_13 . METHOD_16 ( STRING_4 ) ) ; return null ; } try { java . io . StringWriter IDENT_14 = new java . io . StringWriter ( ) ; javax . xml . transform . stream . IDENT_15 result = new javax . xml . transform . stream . METHOD_17 ( ) ; result . METHOD_18 ( IDENT_14 ) ; javax . xml . transform . IDENT_16 factory = javax . xml . transform . IDENT_16 . newInstance ( ) ; org . w3c . dom . Document doc = METHOD_19 ( query ) ; if ( doc != null ) { factory . METHOD_20 ( ) . transform ( new javax . xml . transform . dom . METHOD_21 ( doc ) , result ) ; return IDENT_14 . METHOD_22 ( ) . toString ( ) ; } } catch ( java . lang . Exception e ) { org . pentaho . metadata . query . model . util . METHOD_11 . logger . error ( org . pentaho . metadata . messages . IDENT_13 . METHOD_16 ( STRING_5 ) , e ) ; } return null ; }
org . junit . Assert . assertEquals ( xml , helper . METHOD_12 ( IDENT_12 ) )