while (i.hasNext()) {
result.addFailure(this, new AssertionFailedError((String) i.next()));
</BUG>
}
}
<BUG>Map errorMessageMap = (Map) serviceResult.get(ModelService.ERROR_MESSAGE_MAP);

if (!UtilValidate.isEmpty(errorMessageMap)) {
Iterator i = errorMessageMap.entrySet().iterator();
while (i.hasNext()) {
Map.Entry entry = (Map.Entry) i.next();</BUG>
result.addFailure(this, new AssertionFailedError(entry.getKey() + ": " + entry.getValue()));

UtilMisc.toMap("test", this, "testResult", result, "locale", Locale.getDefault()));
String errorMessage = (String) serviceResult.get(ModelService.ERROR_MESSAGE);
if (UtilValidate.isNotEmpty(errorMessage)) {
result.addFailure(this, new AssertionFailedError(errorMessage));
