Assert.assertEquals(tuple1, lastTuples.remove(0));
Assert.assertEquals(tuple2, lastTuples.remove(0));
// now startup a new agent to see if it gets the queued up tuples
MonitorAgentHarness mah4 = new MonitorAgentHarness(new SimpleMonitorAgent(), new LogicalLocation("L2"), new InetSocketAddress("127.0.0.1", CoordinatorHarness.MASTER_LISTEN_PORT),
logicalIds, l1, empty, l3, null, null);
mah4.initialize();
Thread.sleep(10);
while(((SimpleMonitorAgent)mah4.getMonitorAgent()).lastTuples.size() != 2 && count > 0) {
Thread.sleep(400);
count--;
}