### Question:
CompetitionGroupSetMapper { public abstract CompetitionGroupSetApiEntity toApiEntity(CompetitionGroupSet domainEntity);  abstract CompetitionGroupSetAddPayload toDomainAddPayload(AddCompetitionGroupSetRequest apiAddRequest); abstract CompetitionGroupSetApiEntity toApiEntity(CompetitionGroupSet domainEntity); Set<CompetitionGroupApiEntity> toInnerApiEntitySet(Set<CompetitionGroup> innerDomainEntitySet); abstract List<CompetitionGroupSetApiEntity> toApiEntityList(List<CompetitionGroupSet> domainEntityList); abstract CompetitionGroupSetHibernateEntity toHibernateEntity(
            CompetitionGroupSetAddPayload domainAddPayload
    ); CompetitionGroupSetHibernateEntity toHibernateEntity(CompetitionGroupSet domainEntity); Set<CompetitionGroupHibernateEntity> toInnerHibernateEntitySet(Set<CompetitionGroup> innerDomainEntitySet); abstract void updateHibernateEntity(
            CompetitionGroupSet domainEntity,
            @MappingTarget CompetitionGroupSetHibernateEntity hibernateEntity
    ); abstract CompetitionGroupSet toDomainEntity(CompetitionGroupSetHibernateEntity hibernateEntity); Set<CompetitionGroup> toInnerDomainEntitySet(Set<CompetitionGroupHibernateEntity> innerHibernateEntitySet); abstract List<CompetitionGroupSet> toDomainEntityList(
            List<CompetitionGroupSetHibernateEntity> hibernateEntityList
    ); void setDao(CompetitionGroupSetDao dao); void setCompetitionGroupMapper(CompetitionGroupMapper competitionGroupMapper);  }### Answer:
@Test public void whenToApiEntityFromDomainEntity() { CompetitionGroupSet domainEntity = DomainEntityTestUtils.fullCompetitionGroupSet(); CompetitionGroupSetApiEntity expected = ApiEntityTestUtils.fullCompetitionGroupSet(); CompetitionGroupSetApiEntity actual = mapper.toApiEntity(domainEntity); assertThat(actual).isEqualTo(expected); }