@Test
public void testMap_ShareForPurposeOfUseCodes() {

	// Arrange
	Consent consent = new Consent();
	setDataBasicConsent(consent);
	// Set Do Not Shares
	Set<ConsentShareForPurposeOfUseCode> shareForPurposeOfUseCodes = new HashSet<ConsentShareForPurposeOfUseCode>();
	PurposeOfUseCode purposeOfUseCode = new PurposeOfUseCode();
	purposeOfUseCode.setCode("code");
	purposeOfUseCode.setDisplayName("display name");
	purposeOfUseCode.setCodeSystem("code system");
	purposeOfUseCode.setCodeSystemName("code system name");
	ConsentShareForPurposeOfUseCode consentShareForPurposeOfUseCode = new ConsentShareForPurposeOfUseCode(
			purposeOfUseCode);
	shareForPurposeOfUseCodes.add(consentShareForPurposeOfUseCode);
	consent.setShareForPurposeOfUseCodes(shareForPurposeOfUseCodes);
	// Act
	ConsentDto consentDto = sut.map(consent);
	// Assert
	assertNotNull("typecodesdto is empty",
			consentDto.getShareForPurposeOfUseCodes());
	assertEquals(consent.getShareForPurposeOfUseCodes().size(), consentDto
			.getShareForPurposeOfUseCodes().size());
}