scriptController.addFolder(getTestUser(), "", path, model);
// create
scriptController.createForm(getTestUser(), path, "test.com", "new_file.py", "jython", false,
new RedirectAttributesModelMap(), model);
FileEntry script = (FileEntry) model.get("file");
script.setContent(script.getContent() + "#test comment");
scriptController.save(getTestUser(), script, null, "", false, model);
scriptController.validate(getTestUser(), script, "test.com");
// save and get
model.clear();
scriptController.getOne(getTestUser(), script.getPath(), -1L, model);
FileEntry newScript = (FileEntry) model.get("file");
assertThat(newScript.getFileName(), is(script.getFileName()));
assertThat(newScript.getContent(), is(script.getContent()));
// List<Long> versionList = newScript.getRevisions();
// reversion list is not implemented yet.
// assertThat(versionList.size(), is(2));
model.clear();