@Test(expected = IllegalArgumentException.class)
public void testIndexedButNotStoredField() throws IOException {

  SingleFieldDocument document = new SingleFieldDocument("id", "field") {
    @Override
    public Document asLuceneDocument() {
      Document document = super.asLuceneDocument();
      document.add(new TextField("indexed", "This text is indexed", Field.Store.NO));
      return document;
    }
  };
  commitDocuments(getDirectory(getIndexPath1AsFile()), document);
  lucene2SeqConf = new LuceneStorageConfiguration(configuration,
      asList(getIndexPath1()),
      seqFilesOutputPath,
      SingleFieldDocument.ID_FIELD,
      asList(SingleFieldDocument.FIELD, "indexed"));
  lucene2Seq.run(lucene2SeqConf);
}