@Test
void readInvalidFileWithIncompletePrevHash() {

    byte[] incompletePrevHash = new byte[EventFileReaderImpl.EVENT_PREV_HASH_LENGTH - 2];
    File invalidFile = createTmpEventFile(EventFileReaderImpl.EVENT_STREAM_FILE_VERSION_3,
            EventFileReaderImpl.EVENT_TYPE_PREV_HASH, incompletePrevHash, null);
    assertThrows(InvalidEventFileException.class, () -> {
        eventFileReader.read(invalidFile);
    });
}