throw new TestException("Message from the server"
+ " was not received properly");
}
//Verify ping
short cookie = (short) 0x8080;
PingMessage pm = new PingMessage();
pm.setCookie(cookie).send(os);
PingAckMessage pam = new PingAckMessage();
try {
pam.setCookie(cookie).receive(is,getTimeout());
} catch (ProtocolException e) {
e.printStackTrace();