/src/main/java/org/htmlunit/WebAssert.java
if ( found) {   final String msg = ( "The page contains a link with text '" + text) + "'.";   throw new AssertionError( msg) ; }
[Delete]
if (a.asNormalizedText().contains(text)) { found = true; break; } } if (found) { <extra_id_0> throw new AssertionError(msg); } } public static void assertFormPresent(final HtmlPage page, final String name) { try { page.getFormByName(name);