source: class RecordFileParserTest {
  
      @TempDir Path dataPath;
      @Mock
      private ApplicationStatusRepository applicationStatusRepository;
      @Mock
      private RecordItemListener recordItemListener;
      @Mock(lenient = true)
      private RecordStreamFileListener recordStreamFileListener;
      @Mock
      private MirrorDateRangePropertiesProcessor mirrorDateRangePropertiesProcessor;
      private MirrorProperties mirrorProperties;
      private FileCopier fileCopier;
      private RecordFileParser recordFileParser;
      private RecordParserProperties parserProperties;
      private File file1;
      private File file2;
      private static final int NUM_TXNS_FILE_1;
      private static final long[] FILE_CONSENSUS_TIMESTAMPS;
      private static RecordFile recordFile1;
      private static RecordFile recordFile2;
      private static StreamFileData streamFileData1;
      private static StreamFileData streamFileData2;
  
      @Test
      void bypassHashMismatch() throws Exception {
  
target:         // given
          parserProperties.getMirrorProperties().setVerifyHashAfter(Instant.parse("2019-09-01T00:00:00.000000Z"));
          when(applicationStatusRepository.findByStatusCode(LAST_PROCESSED_RECORD_HASH)).thenReturn("123");
  
          // when
          recordFileParser.parse(streamFileData1);
  
          // then
          verify(recordStreamFileListener, never()).onError();
          assertProcessedFile(streamFileData1, recordFile1, NUM_TXNS_FILE_1);
      }
  
  }