METHOD_0 ( ) { org . talend . components . IDENT_0 . IDENT_1 properties = new org . talend . components . IDENT_0 . METHOD_1 ( STRING_0 ) ; properties . IDENT_2 . setValue ( STRING_1 ) ; properties . IDENT_3 . IDENT_4 . setValue ( STRING_2 ) ; properties . IDENT_3 . IDENT_5 . setValue ( STRING_3 ) ; properties . IDENT_6 . setValue ( STRING_4 ) ; properties . db . setValue ( STRING_5 ) ; java . sql . IDENT_7 connection = org . mockito . Mockito . mock ( java . sql . IDENT_7 . class ) ; org . mockito . Mockito . when ( connection . METHOD_2 ( ) ) . thenReturn ( false ) ; java . sql . IDENT_8 IDENT_9 = org . mockito . Mockito . mock ( java . sql . IDENT_8 . class ) ; org . mockito . Mockito . when ( IDENT_9 . METHOD_3 ( org . mockito . Mockito . any ( ) , org . mockito . Mockito . any ( ) , org . mockito . Mockito . any ( ) , org . mockito . Mockito . eq ( new java . lang . String [ ] { STRING_6 } ) ) ) . thenReturn ( org . mockito . Mockito . mock ( java . sql . ResultSet . class ) ) ; org . mockito . Mockito . when ( connection . METHOD_4 ( ) ) . thenReturn ( IDENT_9 ) ; org . mockito . Mockito . when ( org . talend . components . IDENT_0 . runtime . utils . IDENT_10 . METHOD_5 ( org . mockito . Mockito . any ( ) ) ) . thenReturn ( connection ) ; org . talend . components . IDENT_0 . runtime . IDENT_11 IDENT_12 = new org . talend . components . IDENT_0 . runtime . METHOD_6 ( ) ; IDENT_12 . METHOD_7 ( null , properties ) ; "<AssertPlaceHolder>" ; } METHOD_8 ( org . talend . components . IDENT_13 . IDENT_14 ) { try { org . talend . components . IDENT_13 . IDENT_15 IDENT_16 = METHOD_9 ( context , properties ) ; IDENT_16 . METHOD_10 ( null ) ; return org . talend . IDENT_17 . properties . IDENT_18 . IDENT_19 ; } catch ( org . talend . components . IDENT_13 . client . IDENT_20 e ) { return org . talend . components . IDENT_13 . util . IDENT_21 . METHOD_11 ( e ) ; } }
org . junit . Assert . assertEquals ( IDENT_18 . Result . IDENT_19 , IDENT_12 . METHOD_8 ( properties ) . getStatus ( ) )