### Question:
NodeStatus implements Closeable, ThriftRequestReporter { public void setMaxConnections(int maxConnections) { client.setMaxConnections(maxConnections); } NodeStatus(
            ThriftBalancerConfig config,
            ThriftClientAddress address,
            Function<ThriftClientConfig, C> clientFactory,
            boolean initialCreate
    );   NodeStatus(
            ThriftBalancerConfig config,
            ThriftClientAddress address,
            Function<ThriftClientConfig, C> clientFactory,
            boolean initialCreate,
            Clock clock
    ); @Override void requestBegin(String serviceName, String methodName, ThriftCallType callType); @Override void requestEnd(
            String serviceName,
            String methodName,
            ThriftCallType callType,
            ThriftRequestStatus requestStatus,
            long latencyNanos,
            Optional<Throwable> exception
    ); ThriftClientAddress getAddress(); double getLoadForTests(); double getLoad(); int getUsedConnections(); int getOpenConnections(); void setMaxConnections(int maxConnections); C getClient(); boolean isInRing(); boolean isConnected(); boolean isWorking(); boolean shouldSendTestRequest(); void setRecoveryMode(boolean recoveryMode); boolean stateMachine(double avgDcLoad); @Override boolean equals(Object obj); @Override int hashCode(); boolean isNeedClose(); void setCloseTime(); @Override void close(); void doHealthCheck(); @Override String toString(); LoadBasedBalancer.LoadAccumulator<NodeStatus<I, C>> getLoadAccumulator(); String getStatus(); int getStatusId(); double getAvgLatencyMs(); void reconfigure(ThriftBalancerConfig config); static final int INIT_CONNECTIONS_COUNT; static final int PERIODS_PER_RE_BALANCE; static final int STATISTIC_MAX_DEEP_IN_PERIODS; }### Answer:
@Test(groups = "unit") public void setMaxConnections() throws Exception { node.setMaxConnections(30); verify(client).setMaxConnections(30); }