request.setParameter("path", "/");
request.setParameter("name", "afile.txt");
request.setParameter("type", FileMetaData.BLOG_FILE);
request.setParameter("fileContent", "Some content.");
View view = action.process(request, response);
// check file was saved and the right view is returned
FileManager fileManager = new FileManager(blog, FileMetaData.BLOG_FILE);
assertEquals("Some content.", fileManager.loadFile("/", "afile.txt"));
assertTrue(view instanceof ForwardView);