diff --git a/src/test/java/org/htmlunit/IncorrectnessListenerTest.java b/src/test/java/org/htmlunit/IncorrectnessListenerTest.java
index f66d25425fb..f1e355df3bd 100644
--- a/src/test/java/org/htmlunit/IncorrectnessListenerTest.java
+++ b/src/test/java/org/htmlunit/IncorrectnessListenerTest.java
@@ -60,7 +60,8 @@ public void notify(final String message, final Object origin) {
webClient.getPage(URL_FIRST);
final String[] expectedIncorrectness = {
- "Obsolete content type encountered: 'application/x-javascript'."
+ "Obsolete content type encountered: 'application/x-javascript' for "
+ + "remotely loaded JavaScript element at 'http://localhost:22222/script.js'."
};
assertEquals(expectedIncorrectness, collectedIncorrectness);
}