### Question:
TaskHelper { public static boolean hasPinnedTasks(TaskOrUser user) { return !extractTasks(user, Task::isPinned).isEmpty(); } private  TaskHelper(); static boolean isPotentialOwner(Task task, User user); static boolean hasAllLabels(Task task, User user, String labelName); static int countMatchingLabels(Task task, User user, String labelName); static List<Task> extractTasks(TaskOrUser taskOrUser); static List<Task> extractTasks(TaskOrUser taskOrUser, Predicate<Task> predicate); static boolean hasPinnedTasks(TaskOrUser user);  }### Answer:
@Test public void hasPinnedTasks() { TaskOrUser taskOrUser = buildTaskOrUser(); assertThat(TaskHelper.hasPinnedTasks(taskOrUser)).isTrue(); }