for (Iterator iterator = logs.iterator(); iterator.hasNext();) {
Object uncastedLog = iterator.next();
if (uncastedLog instanceof ActionHandlerMessageLog) {
ActionHandlerMessageLog log = (ActionHandlerMessageLog) uncastedLog;
DeployPackageStep deployPackageStep = log.getStep();
assert deployPackageStep != null : "Step was not found in the action message log entry: " + log;
assert deployPackageStep.getStepResult() == ContentResponseResult.FAILURE : "Step result did not indicate failure. Found: "
+ deployPackageStep.getStepResult();
assert deployPackageStep.getDescription().indexOf("Invalid action") != -1 : "Error message did not indicate the unknown action";
}
}
}