METHOD_0 ( ) { java . sql . IDENT_0 IDENT_1 = mock ( com . IDENT_2 . IDENT_3 . api . jdbc . IDENT_4 . class ) ; com . IDENT_2 . IDENT_3 . api . jdbc . IDENT_4 IDENT_5 = org . apache . camel . component . IDENT_6 . IDENT_7 . METHOD_1 ( IDENT_1 ) ; "<AssertPlaceHolder>" ; } METHOD_1 ( java . sql . IDENT_0 ) { if ( connection == null ) { throw new java . lang . IllegalArgumentException ( STRING_0 ) ; } com . IDENT_2 . IDENT_3 . api . jdbc . IDENT_4 conn ; if ( connection instanceof com . IDENT_2 . IDENT_3 . api . jdbc . IDENT_4 ) { conn = ( ( com . IDENT_2 . IDENT_3 . api . jdbc . IDENT_4 ) ( connection ) ) ; } else if ( connection . METHOD_2 ( com . IDENT_2 . IDENT_3 . api . jdbc . IDENT_4 . class ) ) { conn = connection . METHOD_3 ( com . IDENT_2 . IDENT_3 . api . jdbc . IDENT_4 . class ) ; } else { throw new java . lang . IllegalStateException ( STRING_1 ) ; } return conn ; }
org . junit . Assert . assertSame ( IDENT_1 , IDENT_5 )