assertFalse("Expected " + expected + " contained in\n" + buffer, isContained);
}
private boolean contains(final HasXML expected, final List<? extends HasXML> list, final StringBuilder buffer) {
boolean isContained = false;
final IsPacketLike matcher = new IsPacketLike(expected);
for (final HasXML packet : list) {
buffer.append("[").append(packet.toString()).append("]");
isContained = isContained ? isContained : matcher.matches(packet, System.out);
}
return isContained;
}