Thread.sleep(10);
assertEquals("browserTestRunStarted", messages.get(1));
assertEquals("0", messages.get(2));
DummyBrowserResult browserResult = new DummyBrowserResult(false, 2, 3);
server.browserTestRunFinished(new Browser("mybrowser2.exe", 1), browserResult);
while (messages.size() < 8)
Thread.sleep(10);
assertEquals("browserTestRunFinished", messages.get(3));
assertEquals("1", messages.get(4));
String line1 = messages.get(5);
String line2 = messages.get(6);
String line3 = messages.get(7);
assertEquals(XmlUtility.asString(browserResult.asXmlDocument()), line1 + "\r\n" + line2 + "\r\n" + line3);
assertEquals("endXml", messages.get(8));
}