@Test
public void testFindAllByName() {

	Page<ValueSet> valueSetsMock = mock(Page.class);
	when(
			valueSetRepository.findAllByNameLike(anyString(), anyString(),
					any(Pageable.class))).thenReturn(valueSetsMock);
	List<ValueSetDto> valueSetDtosMock = new ArrayList<ValueSetDto>();
	ValueSetDto valueSetDtoMock = mock(ValueSetDto.class);
	valueSetDtosMock.add(valueSetDtoMock);
	when(
			valueSetMgmtHelper.convertValueSetEntitiesToDtos(valueSetsMock
					.getContent())).thenReturn(valueSetDtosMock);
	when(valueSetDtoMock.getId()).thenReturn((long) 1);
	when(conceptCodeValueSetRepository.findAllByPkValueSetId(anyLong()))
			.thenReturn(null);
	assertEquals(vst.findAllByName("a", null, 0).get("valueSets"),
			valueSetDtosMock);
}