public void TestMultiValueMaxTermsPerDoc() throws Exception {
Directory dir = new RAMDirectory();
IndexWriter indexWriter = new IndexWriter(dir, new IndexWriterConfig(
Lucene.VERSION, new PatternAnalyzer(Version.LUCENE_36, PatternAnalyzer.WHITESPACE_PATTERN, false, null)));
DocumentBuilder d = DocumentBuilder.doc();
for (int i=0;i<200;i++) d.add(DocumentBuilder.field("mvalue", "t" + i));
indexWriter.addDocument(d.build());
indexWriter.addDocument(DocumentBuilder.doc()
.add(DocumentBuilder.field("mvalue", "t1"))
.add(DocumentBuilder.field("mvalue", "t2")).build());