actions.add(createNewFileSystemAction("newfile2.jpg", FileType.FILE));
actions.add(createRenameFileSystemAction("from.jpg", "to.jpg", FileType.FILE));
actions.add(createDeleteFileSystemAction("deletedfile2.jpg", FileType.FILE));
// Run
FileSystemActionComparator actionComparator = new FileSystemActionComparator();
actionComparator.sort(actions);
// Test
assertArrayEquals("Actions should match order",
new String[] {
"DeleteFileSystemAction,deletedfile2.jpg,FILE",