METHOD_0 ( ) { javax . sql . IDENT_0 IDENT_1 = mock ( javax . sql . IDENT_0 . class ) ; when ( context . METHOD_1 ( ( STRING_0 + ( IDENT_2 ) ) ) ) . thenReturn ( IDENT_1 ) ; "<AssertPlaceHolder>" ; } METHOD_2 ( java . lang . String , javax . IDENT_3 . Context ) { if ( org . pentaho . di . core . util . Utils . isEmpty ( IDENT_4 ) ) { throw new javax . IDENT_3 . METHOD_3 ( org . pentaho . di . IDENT_5 . IDENT_6 . getString ( org . pentaho . di . core . database . util . IDENT_7 . IDENT_8 , STRING_1 , java . lang . String . valueOf ( IDENT_4 ) ) ) ; } java . lang . Object IDENT_9 = org . pentaho . di . core . database . util . IDENT_7 . IDENT_10 . get ( IDENT_4 ) ; if ( IDENT_9 != null ) { return ( ( javax . sql . IDENT_0 ) ( IDENT_9 ) ) ; } java . lang . Object IDENT_11 = null ; javax . sql . IDENT_0 IDENT_12 = null ; javax . IDENT_3 . METHOD_3 IDENT_13 = null ; try { IDENT_11 = ctx . METHOD_1 ( IDENT_4 ) ; if ( IDENT_11 instanceof javax . sql . IDENT_0 ) { IDENT_12 = ( ( javax . sql . IDENT_0 ) ( IDENT_11 ) ) ; org . pentaho . di . core . database . util . IDENT_7 . IDENT_10 . put ( IDENT_4 , IDENT_12 ) ; return IDENT_12 ; } } catch ( javax . IDENT_3 . METHOD_3 IDENT_14 ) { IDENT_13 = IDENT_14 ; } try { IDENT_11 = ctx . METHOD_1 ( ( STRING_2 + IDENT_4 ) ) ; if ( IDENT_11 instanceof javax . sql . IDENT_0 ) { IDENT_12 = ( ( javax . sql . IDENT_0 ) ( IDENT_11 ) ) ; org . pentaho . di . core . database . util . IDENT_7 . IDENT_10 . put ( IDENT_4 , IDENT_12 ) ; return IDENT_12 ; } } catch ( javax . IDENT_3 . METHOD_3 IDENT_14 ) { } try { IDENT_11 = ctx . METHOD_1 ( ( STRING_0 + IDENT_4 ) ) ; if ( IDENT_11 instanceof javax . sql . IDENT_0 ) { IDENT_12 = ( ( javax . sql . IDENT_0 ) ( IDENT_11 ) ) ; org . pentaho . di . core . database . util . IDENT_7 . IDENT_10 . put ( IDENT_4 , IDENT_12 ) ; return IDENT_12 ; } } catch ( javax . IDENT_3 . METHOD_3 IDENT_14 ) { } try { IDENT_11 = ctx . METHOD_1 ( ( STRING_3 + IDENT_4 ) ) ; if ( IDENT_11 instanceof javax . sql . IDENT_0 ) { IDENT_12 = ( ( javax . sql . IDENT_0 ) ( IDENT_11 ) ) ; org . pentaho . di . core . database . util . IDENT_7 . IDENT_10 . put ( IDENT_4 , IDENT_12 ) ; return IDENT_12 ; } } catch ( javax . IDENT_3 . METHOD_3 IDENT_14 ) { } if ( IDENT_13 != null ) { throw IDENT_13 ; } throw new javax . IDENT_3 . METHOD_3 ( org . pentaho . di . IDENT_5 . IDENT_6 . getString ( org . pentaho . di . core . database . util . IDENT_7 . IDENT_8 , STRING_1 , IDENT_4 ) ) ; }
org . junit . Assert . assertEquals ( IDENT_1 , org . pentaho . di . core . database . util . IDENT_7 . METHOD_2 ( IDENT_2 , context ) )