METHOD_0 ( ) { gov . IDENT_0 . IDENT_1 . IDENT_2 . db . IDENT_3 . IDENT_4 IDENT_5 = mock ( IDENT_3 . IDENT_4 . class ) ; gov . IDENT_0 . IDENT_1 . IDENT_2 . db . IDENT_3 . METHOD_1 ( IDENT_5 ) ; org . apache . commons . IDENT_6 . IDENT_7 IDENT_8 = mock ( org . apache . commons . IDENT_6 . IDENT_7 . class ) ; java . sql . IDENT_9 IDENT_10 = mock ( java . sql . IDENT_9 . class ) ; when ( IDENT_5 . METHOD_2 ( ) ) . thenReturn ( IDENT_8 ) ; when ( IDENT_8 . METHOD_3 ( ) ) . thenReturn ( IDENT_10 ) ; java . sql . IDENT_9 connection = gov . IDENT_0 . IDENT_1 . IDENT_2 . db . IDENT_3 . getInstance ( STRING_0 , "name" ) . METHOD_3 ( ) ; "<AssertPlaceHolder>" ; verify ( IDENT_8 , METHOD_4 ( 1 ) ) . METHOD_5 ( IDENT_3 . IDENT_11 ) ; verify ( IDENT_8 , METHOD_6 ( ) ) . METHOD_5 ( IDENT_3 . IDENT_12 ) ; }
org . junit . Assert . assertSame ( IDENT_10 , connection )