@Test
public void testCreateCodeSystemFromDto_3()
		throws ValueSetNotFoundException, CodeSystemNotFoundException,
		DuplicateConceptCodeException {

	ConceptCodeDto created = mock(ConceptCodeDto.class);
	when(created.getDescription()).thenReturn("description");
	when(created.getCodeSystemVersionId()).thenReturn((long) 1);
	CodeSystemVersion selectedCsv = mock(CodeSystemVersion.class);
	when(codeSystemVersionRepository.findOne(anyLong())).thenReturn(
			selectedCsv);
	List<Long> selVsIds = Arrays.asList((long) 1, (long) 2, (long) 3);
	when(created.getValueSetIds()).thenReturn(selVsIds);
	ValueSet selectedVs = mock(ValueSet.class);
	when(valueSetRepository.findOne(anyLong())).thenReturn(selectedVs);
	when(created.getCode()).thenReturn("code");
	when(selectedCsv.getId()).thenReturn((long) 1);
	ConceptCode conceptCode = mock(ConceptCode.class);
	when(
			conceptCodeRepository.findByCodeAndCodeSystemVersionId(
					anyString(), anyLong())).thenReturn(null);
	ConceptCodeDto conceptCodeDto = mock(ConceptCodeDto.class);
	when(
			valueSetMgmtHelper
					.createConceptCodeDtoFromEntity(any(ConceptCode.class)))
			.thenReturn(conceptCodeDto);
	assertEquals(conceptCodeServiceImpl.create(created), conceptCodeDto);
}