### Question:
TaskHelper { public static boolean hasAllLabels(Task task, User user, String labelName) { final Set<Object> taskLabelValues = task.getLabelValues(labelName); if (taskLabelValues == null || taskLabelValues.isEmpty()) { return true; } final Set<Object> userLabelValues = user.getLabelValues(labelName); return userLabelValues != null && userLabelValues.containsAll(taskLabelValues); } 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 hasAllLabels() { Task task = mockTask(taskLabelName, taskLabelValues); User user = mockUser(userLabelName, userLabelValues); assertThat(TaskHelper.hasAllLabels(task, user, taskLabelName)).isEqualTo(hasAllLabelsResult); }