METHOD_0 ( ) { javax . IDENT_0 . IDENT_1 ctx = new javax . IDENT_0 . METHOD_1 ( ) ; java . lang . String IDENT_2 = STRING_0 ; when ( meta . getName ( ) ) . thenReturn ( STRING_1 ) ; when ( meta . METHOD_2 ( ) ) . thenReturn ( IDENT_2 ) ; when ( meta . METHOD_3 ( ) ) . thenReturn ( STRING_2 ) ; when ( meta . METHOD_4 ( ) ) . thenReturn ( IDENT_3 . IDENT_4 ) ; when ( meta . METHOD_5 ( IDENT_2 ) ) . thenReturn ( IDENT_2 ) ; javax . sql . IDENT_5 IDENT_6 = mock ( javax . sql . IDENT_5 . class ) ; when ( IDENT_6 . METHOD_6 ( ) ) . thenReturn ( conn ) ; ctx . METHOD_7 ( IDENT_7 , IDENT_6 ) ; org . pentaho . di . core . database . IDENT_8 db = new org . pentaho . di . core . database . METHOD_8 ( log , meta ) ; db . connect ( ) ; "<AssertPlaceHolder>" ; } METHOD_6 ( ) { return connection ; }
org . junit . Assert . assertEquals ( conn , db . METHOD_6 ( ) )