public RequestExecutor assertContentRegexp(boolean expected, String... regexp) {
assertNotNull(this.toString(), response);
nextPattern:
for (String expr : regexp) {
final Pattern p = Pattern.compile(".*" + expr + ".*");
final LineIterator it = new LineIterator(new StringReader(contentString));
while (it.hasNext()) {
final String line = it.nextLine();
if (expected & p.matcher(line).matches()) {
continue nextPattern;
}
if(!expected & p.matcher(line).matches()) {
fail(this + ": match found for regexp '" + expr + "', content=\n" + contentString);