@Test
public void failoverListenerIsAddedIfInstanceOfRetryListener() throws IOException {

    // given
    ChronicleMapRetryFailoverPolicy.Builder builder = createDefaultTestFailoverPolicyBuilder()
            .withRetryDelay(DEFAULT_TEST_RETRY_INTERVAL);
    ChronicleMapRetryFailoverPolicy failoverPolicy = spy(builder.build());
    // when
    failoverPolicy.addListener(mock(RetryListener.class));
    // then
    assertEquals(1, failoverPolicy.retryListeners.length);
}