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