if (!pending.isEmpty()) {
out.println("Pending: " + pending.size() + ".");
out.println();
int count = 1;
for (Iterator i = pending.iterator(); i.hasNext(); count++) {
Result result = (Result) i.next();
printResult(count, result);
out.println("\t" + result.cause().getMessage());
StackTraceElement element = findFirstNonJBehaveStackElement(result.cause());
if (element.getLineNumber() >= 0) {
out.println("\tat " + element.toString() + NL);
}
out.println();
}