for (int i = 0; i < numberOfMessages; i++)
{
ClientMessage msg = cons1.receive(1000);
Assert.assertNotNull("expected message at i = " + i, msg);
msg.saveToOutputStream(new FakeOutputStream());
msg.acknowledge();
Assert.assertEquals("A slow consumer shouldn't buffer anything on the client side!",
0,