RemotePipeline rp = new HttpRemotePipeline("localhost", server.getPort(), "stage");
String content = "xäöåx";
String fileName = "test.txt";
DocumentFile<Local> df = new DocumentFile<Local>(new LocalDocument(testDoc.toJson()).getID(), fileName, IOUtils.toInputStream(content, "UTF-8"));
df.setEncoding("UTF-8");
if(!rp.saveFile(df)) {
fail("RemotePipeline.saveFile() returned false");
}