request.setParameter("path", "/");
request.setParameter("name", "newdirectory");
request.setParameter("type", FileMetaData.BLOG_IMAGE);
View view = action.process(request, response);
// check file now exists and the right view is returned
file = new File(blog.getImagesDirectory(), "newdirectory");
assertTrue("File doesn't exist", file.exists());
assertTrue(view instanceof RedirectView);