@Test
public void test_spew_root_document_in_memory() throws Exception {

    final TikaDocument tikaDocument = factory.create("test.txt");
    tikaDocument.setReader(new StringReader("this is a content"));
    fileSpewer.writeDocument(tikaDocument, null, null, 0);
    String[] list = folder.getRoot().list();
    assertThat(list).isNotEmpty();
    assertThat(list).contains("test.txt.json", "test.txt.txt");
    assertThat( readAllLines(folder.getRoot().toPath().resolve("test.txt.json"), Charset.defaultCharset())).contains("{ }");
    assertThat( readAllLines(folder.getRoot().toPath().resolve("test.txt.txt"), Charset.defaultCharset())).contains("this is a content");
}