METHOD_0 ( ) { when ( IDENT_0 . getMessage ( ) ) . thenReturn ( message ) ; when ( IDENT_0 . getProperty ( eq ( STRING_0 ) , eq ( java . lang . String . class ) ) ) . thenReturn ( STRING_1 ) ; when ( IDENT_0 . getProperty ( eq ( STRING_2 ) , eq ( java . lang . String . class ) ) ) . thenReturn ( STRING_3 ) ; java . lang . String IDENT_1 = org . apache . camel . component . google . IDENT_2 . sql . IDENT_3 . METHOD_1 ( query , IDENT_0 ) ; "<AssertPlaceHolder>" ; } METHOD_1 ( java . lang . String , org . apache . camel . IDENT_4 ) { org . apache . camel . Message message = IDENT_0 . getMessage ( ) ; java . util . regex . IDENT_5 matcher = org . apache . camel . component . google . IDENT_2 . sql . IDENT_3 . pattern . matcher ( query ) ; java . lang . StringBuffer IDENT_6 = new java . lang . StringBuffer ( ) ; while ( matcher . find ( ) ) { java . lang . String IDENT_7 = matcher . group ( 1 ) ; java . lang . String value = message . METHOD_2 ( IDENT_7 , java . lang . String . class ) ; if ( value == null ) { value = IDENT_0 . getProperty ( IDENT_7 , java . lang . String . class ) ; if ( value == null ) { throw new org . apache . camel . METHOD_3 ( ( ( STRING_4 + IDENT_7 ) + STRING_5 ) , IDENT_0 ) ; } } java . lang . String IDENT_8 = java . util . regex . IDENT_5 . METHOD_4 ( value ) ; matcher . METHOD_5 ( IDENT_6 , IDENT_8 ) ; } matcher . METHOD_6 ( IDENT_6 ) ; return IDENT_6 . toString ( ) ; }
org . junit . Assert . assertEquals ( expected , IDENT_1 )