public static List<String> validateXml(InputStream schemaStream, String xmlString) throws Exception {
      return validateXml(schemaStream, xmlString, null);
   }
@Test
   public void testValidXmlAgainstInvalidSchema() throws Exception {
      InputStream schemaStream = new FileInputStream("target/test-classes/io/github/microcks/util/invalid-schema.xsd");
      String validXml = """
            <note>
                <to>Tove</to>
                <from>Jani</from>
                <heading>Reminder</heading>
                <body>Don't forget me this weekend!</body>
            </note>
            """;

      Executable validationExecutable = () -> XmlSchemaValidator.validateXml(schemaStream, validXml);
      assertThrows(SAXParseException.class, validationExecutable, "Expected SAXParseException due to schema mismatch.");
   }