@Test
public void testWithExceptionNoReturn() throws Exception {

    final AtomicInteger i = new AtomicInteger(0);
    assertTrue(Transaction.execute(new TransactionCallbackWithExceptionNoReturn<FileNotFoundException>() {
        @Override
        public void doInTransactionWithoutResult(TransactionStatus status) throws FileNotFoundException {
            i.incrementAndGet();
        }
    }));
    assertEquals(1, i.get());
    verify(conn).setAutoCommit(false);
    verify(conn, times(1)).commit();
    verify(conn, times(0)).rollback();
    verify(conn, times(1)).close();
}