request.setParameter("name", "afile.txt");
request.setParameter("type", FileMetaData.BLOG_FILE);
request.setParameter("newName", "anewfile.txt");
request.setParameter("submit", "rename");
View view = action.process(request, response);
// check source doesn't exist, destination exists and
// correct view is returned
assertFalse("File still exists", sourceFile.exists());
assertTrue("File doesn't exist", destinationFile.exists());