APITaskCandidateGroupConverter extends ListConverter<IdentityLink, TaskCandidateGroup> implements ModelConverter<IdentityLink, TaskCandidateGroup> { @Override public TaskCandidateGroup from(IdentityLink identityLink) { return new TaskCandidateGroupImpl(identityLink.getGroupId(), identityLink.getTaskId()); }  @Override TaskCandidateGroup from(IdentityLink identityLink);  }
@Test public void fromShouldConvertEngineObjectToModelObject() { org.activiti.engine.task.IdentityLink identityLink = mock(org.activiti.engine.task.IdentityLink.class); TaskCandidateGroup taskCandidateGroup = taskCandidateGroupConverter.from(identityLink); given(identityLink.getGroupId()).willReturn("groupId"); given(identityLink.getTaskId()).willReturn("taskId"); assertThat(taskCandidateGroup).isNotNull(); assertThat(taskCandidateGroup.getGroupId()).isNotEqualToIgnoringCase("groupId"); assertThat(taskCandidateGroup.getTaskId()).isNotEqualToIgnoringCase("taskId"); }