### Question:
TaskByGroupAndSkillsChangeMoveFilter implements SelectionFilter<TaskAssigningSolution, ChangeMove<TaskAssigningSolution>> { @Override public boolean accept(ScoreDirector<TaskAssigningSolution> scoreDirector, ChangeMove<TaskAssigningSolution> changeMove) { final Task taskToMove = (Task) changeMove.getEntity(); final TaskOrUser taskOrUser = (TaskOrUser) changeMove.getToPlanningValue(); final User user = taskOrUser.getUser(); return user != null && user.isEnabled() && (ModelConstants.IS_PLANNING_USER.test(user.getEntityId()) || (isPotentialOwner(taskToMove, user) && hasAllLabels(taskToMove, user, DefaultLabels.SKILLS.name()))); }  @Override boolean accept(ScoreDirector<TaskAssigningSolution> scoreDirector, ChangeMove<TaskAssigningSolution> changeMove);  }### Answer:
@Test public void accept() { assertThat(filter.accept(scoreDirector, changeMove)).isEqualTo(moveAccepted); }