* waiting for free connection<br>
* Expectation: passes
*/
@Test
public void t35_WaitsForConnectionTimeout() throws Exception {
SCMPClnCreateSessionCall createSessionCall = new SCMPClnCreateSessionCall(this.requester, TestConstants.sesServerName1);
createSessionCall.setSessionInfo(TestConstants.sleepCmd);
createSessionCall.setEchoIntervalSeconds(10);
createSessionCall.setRequestBody("3000");
TestCallback cbk = new TestCallback();
createSessionCall.invoke(cbk, 10000);
createSessionCall = new SCMPClnCreateSessionCall(this.requester, TestConstants.sesServerName1);
createSessionCall.setSessionInfo(TestConstants.sleepCmd);
createSessionCall.setEchoIntervalSeconds(10);
createSessionCall.setRequestBody("3000");
TestCallback cbk1 = new TestCallback();
createSessionCall.invoke(cbk1, 10000);
// to assure second create is not faster
Thread.sleep(200);
createSessionCall = new SCMPClnCreateSessionCall(this.requester, TestConstants.sesServerName1);
createSessionCall.setEchoIntervalSeconds(10);
TestCallback cbk2 = new TestCallback();
createSessionCall.invoke(cbk2, 2000);
SCMPMessage reply = cbk.getMessageSync(4000);
SCMPMessage reply1 = cbk1.getMessageSync(4000);
SCMPMessage reply2 = cbk2.getMessageSync(4000);