</BUG>
String errorMessage = (String) serviceResult.get(ModelService.ERROR_MESSAGE);
if (UtilValidate.isNotEmpty(errorMessage)) {
result.addFailure(this, new AssertionFailedError(errorMessage));
}
<BUG>List errorMessageList = (List) serviceResult.get(ModelService.ERROR_MESSAGE_LIST);

if (UtilValidate.isNotEmpty(errorMessageList)) {
Iterator i = errorMessageList.iterator();
while (i.hasNext()) {
result.addFailure(this, new AssertionFailedError((String) i.next()));
</BUG>
}

}
public int countTestCases() {
return 1;
}
public void run(TestResult result) {
result.startTest(this);
LocalDispatcher dispatcher = modelTestSuite.getDispatcher();
try {
Map<String, Object> serviceResult = dispatcher.runSync(serviceName, UtilMisc.toMap("test", this, "testResult", result));
String errorMessage = (String) serviceResult.get(ModelService.ERROR_MESSAGE);
if (UtilValidate.isNotEmpty(errorMessage)) {
result.addFailure(this, new AssertionFailedError(errorMessage));
