@Test
void onLiveHash() throws Exception {

    // given
    LiveHash expectedLiveHash = new LiveHash(20L, "live hash".getBytes());
    // when
    sqlEntityListener.onLiveHash(expectedLiveHash);
    completeFileAndCommit();
    // then
    assertEquals(1, liveHashRepository.count());
    assertExistsAndEquals(liveHashRepository, expectedLiveHash, 20L);
}