METHOD_0 ( ) { final java . lang . Long [ ] result = new java . lang . Long [ 1 ] ; when ( message . METHOD_1 ( ) ) . thenReturn ( ( count ) -> result [ 0 ] = count ) ; when ( IDENT_0 . next ( ) ) . thenReturn ( true , false ) ; when ( IDENT_0 . METHOD_2 ( 1 ) ) . thenReturn ( INT_0 ) ; task . METHOD_3 ( null ) ; task . execute ( ) ; verify ( connection ) . METHOD_4 ( any ( info . IDENT_1 . IDENT_2 . IDENT_3 . IDENT_4 . IDENT_5 . class ) ) ; verify ( IDENT_6 ) . execute ( ) ; verify ( IDENT_0 ) . next ( ) ; verify ( IDENT_0 ) . METHOD_2 ( METHOD_5 ( ) ) ; verify ( connection ) . commit ( ) ; "<AssertPlaceHolder>" ; } commit ( ) { try { connection . commit ( ) ; } catch ( java . sql . IDENT_7 e ) { throw new info . IDENT_1 . IDENT_2 . database . interfaces . IDENT_8 . exception . METHOD_6 ( STRING_0 , e ) ; } }
org . junit . Assert . assertEquals ( java . lang . Long . valueOf ( INT_0 ) , result [ 0 ] )