@Test
void onTransaction() {

    Transaction transaction = new Transaction();
    transaction.setConsensusNs(1L);
    transaction.setNodeAccountId(ENTITY_ID);
    transaction.setPayerAccountId(ENTITY_ID);
    transaction.setResult(1);
    transaction.setType(1);
    transaction.setValidStartNs(1L);
    repositoryEntityListener.onTransaction(transaction);
    assertThat(transactionRepository.findAll()).contains(transaction);
}