String fileName2 = "test2.txt";
mc.getDocumentWriter().write(new DocumentFile<MemoryType>(testDoc.getID(), fileName, IOUtils.toInputStream(content, "UTF-8"), "stage"));
mc.getDocumentWriter().write(new DocumentFile<MemoryType>(testDoc.getID(), fileName2, IOUtils.toInputStream(content, "UTF-8"), "stage"));
rp.deleteFile(fileName, LocalDocumentID.getDocumentID(testDoc.getID().toJSON()));
if(mc.getDocumentReader().getDocumentFileNames(testDoc).size()!=1) {
fail("Incorrect amount of files attached to document after delete");
}