class CompetitionGroupSetMapper {

public abstract CompetitionGroupSetAddPayload toDomainAddPayload(AddCompetitionGroupSetRequest apiAddRequest)public abstract CompetitionGroupSetAddPayload toDomainAddPayload(AddCompetitionGroupSetRequest apiAddRequest);

}

class CompetitionGroupSetMapperTest {

    private CompetitionGroupSetMapper mapper;
    @Mock CompetitionGroupSetDao dao;
    @Mock CompetitionGroupDao competitionGroupDao;

    @Test
    public void whenToDomainAddPayloadFromApiAddRequest() {

        AddCompetitionGroupSetRequest apiAddRequest = ApiRequestTestUtils.fullAddCompetitionGroupSet();
        CompetitionGroupSetAddPayload expected = DomainPayloadTestUtils.fullCompetitionGroupSetAdd();
        expected.setCompetitionGroups(null);

        CompetitionGroupSetAddPayload actual = mapper.toDomainAddPayload(apiAddRequest);

        assertThat(actual).isEqualTo(expected);
    }

}