{
int timeout = 2 * BrokerDetails.DEFAULT_CONNECT_TIMEOUT;
assertTrue(timeout != BrokerDetails.DEFAULT_CONNECT_TIMEOUT);
String brokerURL = "tcp://localhost:5672?" + BrokerDetails.OPTIONS_CONNECT_TIMEOUT + "='" + timeout + "'";
AMQBrokerDetails broker = new AMQBrokerDetails(brokerURL);
ConnectionSettings settings = broker.buildConnectionSettings();
assertEquals("unexpected connect timeout value", timeout, settings.getConnectTimeout());
}