public ClientFailoverConfig setClientConfigs(List<ClientConfig> clientConfigs) {
        clientConfigs.forEach(this::validateClientConfig);
        this.clientConfigs = clientConfigs;
        return this;
    }
@Test
    public void testSetClientConfigs_WithOffReconnectMode_ShouldThrowInvalidConfigException() {
        ClientConfig clientConfig1 = new ClientConfig();
        ClientConfig clientConfig2 = new ClientConfig()
                .setConnectionStrategyConfig(new ClientConnectionStrategyConfig().setReconnectMode(OFF));

        List<ClientConfig> clientConfigList = Arrays.asList(clientConfig1, clientConfig2);
        ClientFailoverConfig clientFailoverConfig = new ClientFailoverConfig();
        assertThatThrownBy(() -> clientFailoverConfig.setClientConfigs(clientConfigList))
                .isInstanceOf(InvalidConfigurationException.class)
                .hasMessageContaining("Reconnect mode for ClientFailoverConfig must not be OFF");
    }