// Now comes the real test : check that the Replication Server
// answers correctly to a WindowProbeMsg Message.
session.publish(new WindowProbeMsg());
WindowMsg windowMsg = (WindowMsg) session.receive();
assertEquals(serverwindow, windowMsg.getNumAck());
// check that this did not change the window by sending a probe again.
session.publish(new WindowProbeMsg());
// We may receive some MonitoringMsg so use filter method
windowMsg = (WindowMsg)waitForSpecificMsg(session, WindowMsg.class.getName());
assertEquals(serverwindow, windowMsg.getNumAck());
debugInfo("Ending windowProbeTest");
}
finally
{
session.close();