METHOD_0 ( ) { java . lang . String IDENT_0 = STRING_0 ; properties . METHOD_1 ( STRING_1 ) ; properties . METHOD_2 ( new org . talend . components . IDENT_1 . METHOD_3 ( STRING_2 ) ) ; properties . IDENT_2 . setValue ( java . util . Arrays . asList ( new org . talend . IDENT_3 . IDENT_4 [ ] { new org . talend . IDENT_3 . METHOD_4 ( IDENT_0 ) } ) ) ; try ( org . talend . components . IDENT_1 . IDENT_5 . IDENT_6 IDENT_7 = new org . talend . components . IDENT_1 . IDENT_5 . METHOD_5 ( ) ) { IDENT_7 . METHOD_6 ( ) ; org . mockito . Mockito . when ( IDENT_7 . IDENT_8 . METHOD_7 ( properties ) ) . thenReturn ( IDENT_9 . IDENT_10 ) ; org . apache . avro . Schema schema = org . apache . avro . IDENT_11 . record ( STRING_3 ) . fields ( ) . METHOD_8 ( STRING_4 ) . METHOD_9 ( ) ; org . mockito . Mockito . when ( IDENT_7 . IDENT_8 . METHOD_10 ( null , IDENT_0 ) ) . thenReturn ( schema ) ; org . mockito . Mockito . when ( repo . METHOD_11 ( org . mockito . Mockito . any ( ) , org . mockito . Mockito . any ( ) , org . mockito . Mockito . any ( ) , org . mockito . Mockito . any ( ) ) ) . thenReturn ( STRING_5 ) ; "<AssertPlaceHolder>" ; org . mockito . Mockito . verify ( repo , org . mockito . Mockito . times ( 2 ) ) . METHOD_11 ( org . mockito . Mockito . any ( ) , org . mockito . Mockito . any ( ) , org . mockito . Mockito . any ( ) , org . mockito . Mockito . any ( ) ) ; } } METHOD_12 ( org . talend . IDENT_3 . properties . service . IDENT_12 ) { org . talend . components . jdbc . IDENT_13 IDENT_14 = new org . talend . components . jdbc . METHOD_13 ( this , STRING_6 ) ; try ( org . talend . IDENT_3 . IDENT_15 . IDENT_16 IDENT_17 = org . talend . IDENT_3 . runtime . IDENT_18 . METHOD_14 ( IDENT_14 , connection . getClass ( ) . METHOD_15 ( ) ) ) { org . talend . components . jdbc . runtime . IDENT_19 . IDENT_20 IDENT_21 = ( ( org . talend . components . jdbc . runtime . IDENT_19 . IDENT_20 ) ( IDENT_17 . getInstance ( ) ) ) ; IDENT_21 . METHOD_16 ( null , this ) ; org . talend . IDENT_3 . properties . IDENT_9 IDENT_22 = IDENT_21 . validate ( null ) ; if ( ( IDENT_22 . getStatus ( ) ) != ( IDENT_9 . Result . IDENT_10 ) ) { return IDENT_22 ; } repo . METHOD_11 ( this , this . name . getValue ( ) , IDENT_23 , null ) ; return org . talend . IDENT_3 . properties . IDENT_9 . IDENT_10 ; } }
org . junit . Assert . assertEquals ( IDENT_9 . IDENT_10 , properties . METHOD_12 ( repo ) )