@Test
void onTransaction() throws Exception {

    // given
    var expectedTransaction = makeTransaction();
    // when
    sqlEntityListener.onTransaction(expectedTransaction);
    completeFileAndCommit();
    // then
    assertEquals(1, transactionRepository.count());
    assertExistsAndEquals(transactionRepository, expectedTransaction, 101L);
}