TextDocument doc = new TextDocument("X");
doc.setDelimiter(FieldDelimiter.COMMA);
doc.setStructure(struct);
ValidationMessageCollectorImpl collector = new ValidationMessageCollectorImpl(ValidationContext.EMPTY);
TextDocumentValidator validator = new TextDocumentValidator(doc, collector);
validator.run();
assertSame(ValidationStatus.VALID, collector.result().status());
}
}