@Test
void onContractResult() throws Exception {

    // given
    ContractResult expectedContractResult = new ContractResult(15L, "function parameters".getBytes(),
            10000L, "call result".getBytes(), 10000L);
    // when
    sqlEntityListener.onContractResult(expectedContractResult);
    completeFileAndCommit();
    // then
    assertEquals(1, contractResultRepository.count());
    assertExistsAndEquals(contractResultRepository, expectedContractResult, 15L);
}