@Test
public void testPersistentThrowsException() throws IOException {

    final Exception exception = new IOException("expected exception");
    doThrow(exception).when(persistentManager).freezeAllFilters(bloomFilterManager);
    filterUpdateTimesCounter.add(100);
    // eat exception
    job.run();
    assertThat(filterUpdateTimesCounter.sum()).isZero();
    verify(persistentManager, times(1)).freezeAllFilters(bloomFilterManager);
}