@Test
public void shouldCommitIfExecuteSucceeds() throws Exception {

    final JDBCBase.ConnectionBlock mockConnectionBlock = mock(JDBCBase.ConnectionBlock.class);
    initializeJDBCTestSubclass();
    jdbcTestSubclass.execute(mockConnectionBlock);
    // and that we commit
    verify(mockConnection, times(2)).commit(); // the first time was because of the initialize() call
    verify(mockConnection, times(0)).close();
}