METHOD_0 ( ) { org . pentaho . di . core . database . IDENT_0 driver = mock ( org . pentaho . di . core . database . IDENT_0 . class ) ; when ( driver . METHOD_1 ( anyString ( ) ) ) . thenReturn ( true ) ; when ( driver . connect ( anyString ( ) , any ( java . util . Properties . class ) ) ) . thenReturn ( conn ) ; org . pentaho . di . core . database . IDENT_1 . METHOD_2 ( driver ) ; when ( meta . METHOD_3 ( ) ) . thenReturn ( true ) ; when ( meta . METHOD_4 ( ) ) . thenReturn ( driver . getClass ( ) . getName ( ) ) ; when ( meta . METHOD_5 ( anyString ( ) ) ) . thenReturn ( STRING_0 ) ; when ( meta . METHOD_6 ( ) ) . thenReturn ( 1 ) ; when ( meta . METHOD_7 ( ) ) . thenReturn ( 1 ) ; org . pentaho . di . core . database . IDENT_2 provider = mock ( org . pentaho . di . core . database . IDENT_2 . class ) ; org . pentaho . di . core . database . IDENT_3 db = new org . pentaho . di . core . database . METHOD_8 ( log , meta ) ; final org . pentaho . di . core . database . IDENT_2 IDENT_4 = org . pentaho . di . core . database . IDENT_5 . METHOD_9 ( ) ; try { org . pentaho . di . core . database . IDENT_5 . METHOD_10 ( provider ) ; db . METHOD_11 ( STRING_1 ) ; } finally { org . pentaho . di . core . database . IDENT_5 . METHOD_10 ( IDENT_4 ) ; } "<AssertPlaceHolder>" ; org . pentaho . di . core . database . IDENT_1 . METHOD_12 ( driver ) ; } METHOD_13 ( ) { return connection ; }
org . junit . Assert . assertNotNull ( db . METHOD_13 ( ) )