METHOD_0 ( ) { results = mock ( java . sql . ResultSet . class ) ; IDENT_0 = mock ( java . sql . IDENT_1 . class ) ; when ( meta . METHOD_1 ( ) ) . thenReturn ( 2 ) ; when ( conn . METHOD_2 ( any ( java . lang . String . class ) , eq ( IDENT_2 . IDENT_3 ) ) ) . thenReturn ( stmt ) ; when ( stmt . METHOD_3 ( ) ) . thenReturn ( results ) ; when ( results . next ( ) ) . thenReturn ( true ) . thenReturn ( true ) . thenReturn ( false ) ; when ( results . METHOD_4 ( ) ) . thenReturn ( IDENT_0 ) ; when ( IDENT_0 . METHOD_5 ( ) ) . thenReturn ( 1 ) ; final org . apache . commons . IDENT_4 . IDENT_5 < java . util . List < java . lang . Object > > handler = new org . apache . commons . IDENT_4 . IDENT_5 < java . util . List < java . lang . Object > > ( ) { @ org . apache . commons . IDENT_4 . Override public java . util . List < java . lang . Object > METHOD_6 ( final java . sql . ResultSet rs ) throws java . sql . IDENT_6 { final java . util . List < java . lang . Object > IDENT_7 = new java . util . ArrayList ( ) ; while ( rs . next ( ) ) { IDENT_7 . add ( new java . lang . Object ( ) ) ; } return IDENT_7 ; } } ; final java . lang . Object [ ] [ ] params = new java . lang . Object [ 2 ] [ 2 ] ; params [ 0 ] [ 0 ] = STRING_0 ; params [ 0 ] [ 1 ] = STRING_1 ; params [ 1 ] [ 0 ] = STRING_2 ; params [ 1 ] [ 1 ] = STRING_3 ; final java . util . List < java . lang . Object > IDENT_8 = runner . METHOD_7 ( STRING_4 , handler , params ) ; verify ( stmt , times ( 2 ) ) . METHOD_8 ( ) ; verify ( stmt , times ( 1 ) ) . METHOD_9 ( ) ; verify ( stmt , times ( 1 ) ) . close ( ) ; verify ( conn , times ( 1 ) ) . close ( ) ; "<AssertPlaceHolder>" ; } METHOD_7 ( java . lang . String , org . apache . commons . IDENT_4 . IDENT_5 , java . lang . Object [ ] [ ] ) { return METHOD_7 ( this . METHOD_10 ( ) , true , sql , IDENT_9 , params ) ; }
org . junit . Assert . assertEquals ( 2 , IDENT_8 . size ( ) )