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