HandicapGroupMapper { public abstract List<HandicapGroupApiEntity> toApiEntityList(List<HandicapGroup> domainEntityList);  abstract HandicapGroupAddPayload toDomainAddPayload(AddHandicapGroupRequest apiAddRequest); abstract HandicapGroupApiEntity toApiEntity(HandicapGroup domainEntity); abstract List<HandicapGroupApiEntity> toApiEntityList(List<HandicapGroup> domainEntityList); abstract HandicapGroupHibernateEntity toHibernateEntity(HandicapGroupAddPayload domainAddPayload); HandicapGroupHibernateEntity toHibernateEntity(HandicapGroup domainEntity); abstract void updateHibernateEntity(
            HandicapGroup domainEntity,
            @MappingTarget HandicapGroupHibernateEntity hibernateEntity
    ); abstract HandicapGroup toDomainEntity(HandicapGroupHibernateEntity hibernateEntity); abstract List<HandicapGroup> toDomainEntityList(List<HandicapGroupHibernateEntity> hibernateEntityList); void setDao(HandicapGroupDao dao);  }
@Test public void whenToApiEntityListFromDomainEntityList() { List<HandicapGroup> domainEntityList = Arrays.asList(DomainEntityTestUtils.fullHandicapGroup()); List<HandicapGroupApiEntity> expected = Arrays.asList(ApiEntityTestUtils.fullHandicapGroup()); List<HandicapGroupApiEntity> actual = mapper.toApiEntityList(domainEntityList); assertThat(actual).isEqualTo(expected); }