### Question:
KryoNetParameters implements Serializable { public KryoNetParameters setTerminationTimeout(int terminationTo) { Preconditions.checkArgument(terminationTo > 0, "KryoNet termination timeout must be strictly positive"); terminationTimeout = terminationTo; return this; } KryoNetParameters(); static KryoNetParameters from(final Configuration config); int getConnectionTimeout(); KryoNetParameters setConnectionTimeout(int connectionTo); int getTerminationTimeout(); KryoNetParameters setTerminationTimeout(int terminationTo); int getReconnectionDelay(); KryoNetParameters setReconnectionDelay(int reconnectionDelay); int getRetrySleepDelay(); KryoNetParameters setRetrySleepDelay(int retrySleepDelay); int getMaxRetries(); KryoNetParameters setMaxRetries(int maxRetries); @Override int hashCode(); @Override boolean equals(Object obj); @Override String toString(); static final String CONFIG_BASE_NAME; static final String CONNECTION_TIMEOUT; static final int CONNECTION_TIMEOUT_DEFAULT; static final String RETRY_SLEEP_DELAY; static final int RETRY_SLEEP_DELAY_DEFAULT; static final String RECONNECTION_DELAY; static final int RECONNECTION_DELAY_DEFAULT; static final String TERMINATION_TO; static final int TERMINATION_TO_DEFAULT; static final String MAX_RETRIES; static final int MAX_RETRIES_DEFAULT; }### Answer:
@Test(expected = IllegalArgumentException.class) public void invalidTerminationTimeout() { new KryoNetParameters().setTerminationTimeout(-1); }