public EndpointConfig setSocketKeepCount(int socketKeepCount) {
        Preconditions.checkPositive("socketKeepCount", socketKeepCount);
        Preconditions.checkTrue(socketKeepCount < MAX_SOCKET_KEEP_COUNT,
                "socketKeepCount value " + socketKeepCount + " is outside valid range 1 - 127");
        this.socketKeepCount = socketKeepCount;
        return this;
    }
@Test
    public void testKeepCountValidation() {
        EndpointConfig endpointConfig = new EndpointConfig();
        Assert.assertThrows(IllegalArgumentException.class, () -> endpointConfig.setSocketKeepCount(0));
        Assert.assertThrows(IllegalArgumentException.class, () -> endpointConfig.setSocketKeepCount(128));
        Assert.assertThrows(IllegalArgumentException.class, () -> endpointConfig.setSocketKeepCount(-3));
    }