//make sure it was added properly
FavoriteTask favoriteTask = editor.getFavoriteTasks().get(0);
Assert.assertEquals("mysubproject1:compile", favoriteTask.getDisplayName());
Assert.assertEquals("mysubproject1:compile", favoriteTask.getFullCommandLine());
Assert.assertTrue(favoriteTask.alwaysShowOutput());
//create an observer so we can make sure we're notified of the deletion.
final FavoritesEditor.FavoriteTasksObserver observer = context.mock(
FavoritesEditor.FavoriteTasksObserver.class);
context.checking(new Expectations() {{