public EndpointConfig setSocketKeepIdleSeconds(int socketKeepIdleSeconds) {
        Preconditions.checkPositive("socketKeepIdleSeconds", socketKeepIdleSeconds);
        Preconditions.checkTrue(socketKeepIdleSeconds < MAX_SOCKET_KEEP_IDLE_SECONDS,
                "socketKeepIdleSeconds value " + socketKeepIdleSeconds + " is outside valid range 1 - 32767");
        this.socketKeepIdleSeconds = socketKeepIdleSeconds;
        return this;
    }
@Test
    public void testKeepIdleSecondsValidation() {
        EndpointConfig endpointConfig = new EndpointConfig();
        Assert.assertThrows(IllegalArgumentException.class, () -> endpointConfig.setSocketKeepIdleSeconds(0));
        Assert.assertThrows(IllegalArgumentException.class, () -> endpointConfig.setSocketKeepIdleSeconds(32768));
        Assert.assertThrows(IllegalArgumentException.class, () -> endpointConfig.setSocketKeepIdleSeconds(-17));
    }