@Test
void hashMismatch() {

    // given
    when(applicationStatusRepository.findByStatusCode(LAST_PROCESSED_RECORD_HASH)).thenReturn("123");
    // when
    Assertions.assertThrows(HashMismatchException.class, () -> {
        recordFileParser.parse(streamFileData1);
    });
    // then
    verify(recordStreamFileListener).onStart(streamFileData1);
    verify(recordStreamFileListener, never()).onEnd(any());
    verify(recordStreamFileListener).onError();
}