@Test
void onFileData() throws Exception {

    // given
    FileData expectedFileData = new FileData(11L, Strings.toByteArray("file data"), EntityId
            .of(0, 0, 111, EntityTypeEnum.FILE), TransactionTypeEnum.CONSENSUSSUBMITMESSAGE.getProtoId());
    // when
    sqlEntityListener.onFileData(expectedFileData);
    completeFileAndCommit();
    // then
    assertEquals(1, fileDataRepository.count());
    assertExistsAndEquals(fileDataRepository, expectedFileData, 11L);
}