@Test
void noUpdateIfCreateTransaction() throws Exception {

    AccountInfo.Builder accountInfo = accountInfo();
    write(accountInfo.build());
    Entities entity = entity(accountId.getAccountNum());
    Entities node = entity(2);
    Entities payer = entity(3);
    long transactionTypeId = jdbcTemplate
            .queryForObject("select id from t_transaction_types where name = ?", new Object[] {
                    "CRYPTOCREATEACCOUNT"}, Integer.class);
    jdbcTemplate.update("insert into t_transactions (consensus_ns, entity_id, node_account_id, payer_account_id, " +
                    "fk_trans_type_id, valid_start_ns) " +
                    "values(?,?,?,?,?,?,?)",
            1L, entity.getId(), node.getId(), payer.getId(), payer.getEntityNum(), transactionTypeId, 1L);
    migration.migrate(new FlywayContext());
    Assertions.assertThat(entityRepository.findAll())
            .extracting(Entities::getEntityNum)
            .containsExactlyInAnyOrder(entity.getEntityNum(), node.getEntityNum(), payer.getEntityNum());
    Assertions.assertThat(entityRepository.findById(entity.getId()))
            .get()
            .extracting(Entities::getKey)
            .withFailMessage("Expecting entity <%d> to not be updated", entity.getEntityNum())
            .isNull();
}