RemotePipeline rp = new HttpRemotePipeline("localhost", server.getPort(), "stage");
String content = "adsafgoaiuhgahgo\ndasdas";
String fileName = "test.txt";
rp.saveFile(new DocumentFile<Local>(testDoc.getID().getLocalDocumentID(), fileName, IOUtils.toInputStream(content, "UTF-8")));
DocumentFile<MemoryType> df = mc.getDocumentReader().getDocumentFile(testDoc, fileName);
if(df==null) {
fail("File was not properly saved");