### Question:
CarreraConfig implements Cloneable, Serializable { public void validate(boolean singleServer) { if (groupId == null || !GROUP_PATTERN.matcher(groupId).matches()) { throw new CarreraConfigError("Invalid groupId : " + groupId); } if (servers == null || !SERVERS_PATTERN.matcher(servers).matches()) { throw new CarreraConfigError("Invalid servers : " + servers); } if (singleServer && servers.contains(";")) { throw new CarreraConfigError("Invalid single server : " + servers); } if (timeout < 0) throw new CarreraConfigError("Invalid timeout : " + timeout); if (retryInterval <= 0) throw new CarreraConfigError("Invalid retryInterval : " + retryInterval); if (submitMaxRetries <= 0) throw new CarreraConfigError("Invalid submitMaxRetries : " + submitMaxRetries); if (maxBatchSize <= 0) throw new CarreraConfigError("Invalid maxBatchSize : " + maxBatchSize); if (maxLingerTime < 0) throw new CarreraConfigError("Invalid maxLingerTime : " + maxLingerTime); if (timeout < maxLingerTime || maxLingerTime * 2 > timeout) throw new CarreraConfigError("timeout must be more than 2 times maxLingerTime, timeout=" + timeout + ",maxLingerTime=" + maxLingerTime); } CarreraConfig();  CarreraConfig(String groupId, String servers); String getGroupId(); void setGroupId(String groupId); int getTimeout(); void setTimeout(int timeout); int getRetryInterval(); void setRetryInterval(int retryInterval); int getSubmitMaxRetries(); void setSubmitMaxRetries(int submitMaxRetries); int getMaxBatchSize(); void setMaxBatchSize(int maxBatchSize); int getMaxLingerTime(); void setMaxLingerTime(int maxLingerTime); String getServers(); void setServers(String servers); @Override String toString(); @Override CarreraConfig clone(); void validate(boolean singleServer); static int TIMEOUT; static int RETRY_INTERVAL; static int SUBMIT_MAX_RETRIES; static int MAX_BATCH_SIZE; static int MAX_LINGER_TIME; }### Answer:
@Test public void test() throws Exception { CarreraConfig config = new CarreraConfig("some-group", "111.111.111.1:123;111.111.111.1:123;"); config.validate(false); }