@Test
public void exceptionCountIsIncrementedOnStorageFailure() throws IOException {

    // given
    ChronicleMapRetryFailoverPolicy failoverPolicy = createDefaultTestFailoverPolicyBuilder().build();
    ItemSource<Object> failedItemSource = mock(FailedItemSource.class);
    // when
    boolean result = failoverPolicy.tryPut(null, failedItemSource);
    // then
    assertFalse(result);
    assertEquals(1, failoverPolicy.storeFailureCount.get());
}