Map<ClientStatus, JUnitResult> results = messageQueue.getResults(currentTestInfo);
assert results != null;
assert results.size() == messageQueue.getNumClients() : results.size() + " != " + messageQueue.getNumClients();
for (Entry<ClientStatus, JUnitResult> entry : results.entrySet()) {
ClientStatus client = entry.getKey();
JUnitResult result = entry.getValue();
assert (result != null);
Throwable exception = result.getException();
// Let the user know the browser in which the failure happened.
if (exception != null) {
String msg = "Remote test failed at " + client.getDesc();
if (exception instanceof AssertionFailedError) {
String oldMessage = exception.getMessage();
if (oldMessage != null) {
msg += "\n" + exception.getMessage();
}