private static void printResults(RefCCDAValidationResult result) {
   System.out.println("Description : " + result.getDescription());
   System.out.println("Type : " + result.getType());
   System.out.println("result.isSchemaError() : " + result.isSchemaError());
   System.out.println("result.isDataTypeSchemaError() : " + result.isDataTypeSchemaError());
   System.out.println();
 }
  @Test
  public void multipleDocumentsWithAndWithoutSchemaErrorTest() {
    for (int curCCDAFileIndex = 0;
        curCCDAFileIndex < LAST_SCHEMA_TEST_AND_NO_SCHEMA_ERROR_INDEX + 1;
        curCCDAFileIndex++) {
      System.out.println(
          "***************** Running multipleDocumentsWithAndWithoutSchemaErrorTest test #"
              + (curCCDAFileIndex + 1)
              + " ******************"
              + System.lineSeparator());

      ArrayList<RefCCDAValidationResult> results =
          validateDocumentAndReturnResults(convertCCDAFileToString(CCDA_FILES[curCCDAFileIndex]));

      System.out.println(
          System.lineSeparator()
              + "CCDAIssueStates.hasSchemaError(): "
              + mdhtResultsHaveSchemaError(results)
              + System.lineSeparator());
      if (curCCDAFileIndex == 0 || curCCDAFileIndex == LAST_SCHEMA_TEST_AND_NO_SCHEMA_ERROR_INDEX) {
        assertFalse(
            "The document does not have schema error yet the flag is set to true",
            mdhtResultsHaveSchemaError(results));
      } else {
        assertTrue(
            "The document has a schema error yet the flag is set to false",
            mdhtResultsHaveSchemaError(results));
      }

      for (RefCCDAValidationResult result : results) {
        if (SHOW_ERRORS_ONLY) {
          if (result.getType() == ValidationResultType.CCDA_MDHT_CONFORMANCE_ERROR) {
            printResults(result);
          }
        } else {
          printResults(result);
        }
      }

      System.out.println(
          "***************** End results for test #"
              + (curCCDAFileIndex + 1)
              + " ******************"
              + System.lineSeparator()
              + System.lineSeparator());
    }
  }