File file = tempDir.createFile("fred.favorite-tasks");
originalEditor.exportToFile(new TestUtility.TestExportInteraction(file,
true)); //confirm overwrite because the above function actually creates the file.
FavoritesEditor newEditor = new FavoritesEditor();
newEditor.importFromFile(new TestUtility.TestImportInteraction(file));
//make sure they're the same
FavoriteTask readInFavoriteTask1 = originalEditor.getFavoriteTasks().get(0);
assertFavorite(readInFavoriteTask1, originalFavoriteTask1);