diff --git a/common/sourceTest/java/ch/systemsx/cisd/common/utilities/XMLInfraStructureTest.java b/common/sourceTest/java/ch/systemsx/cisd/common/utilities/XMLInfraStructureTest.java
index bd3842aa1dbdc9a284f6ae37ab08aff4bdc63d07..1195f14ac4672caf6440a51402b61105a1ec3611 100644
--- a/common/sourceTest/java/ch/systemsx/cisd/common/utilities/XMLInfraStructureTest.java
+++ b/common/sourceTest/java/ch/systemsx/cisd/common/utilities/XMLInfraStructureTest.java
@@ -176,9 +176,9 @@ public class XMLInfraStructureTest extends AssertJUnit
             fail("Exception expected");
         } catch (Exception ex)
         {
-            assertEquals("org.xml.sax.SAXParseException; lineNumber: 7; columnNumber: 1; "
-                    + "XML document structures must start and end within the same entity.",
-                    ex.toString());
+            assertTrue(ex.toString().startsWith("org.xml.sax.SAXParseException"));
+            assertTrue(ex.toString().contains(
+                    "XML document structures must start and end within the same entity."));
         }
     }
 }