ValueSetServiceImpl implements ValueSetService { @Override public List<Map<String, Object>> lookupValuesetCategoriesOfMultipleCodeAndCodeSystemSet(List<CodeAndCodeSystemSetDto> codeAndCodeSystemSetDtoList){ List<Map<String, Object>> resp=new ArrayList<Map<String, Object>>(); String restURL; StringBuilder builder; Iterator<CodeAndCodeSystemSetDto> iterator=codeAndCodeSystemSetDtoList.iterator(); while(iterator.hasNext()) { builder=new StringBuilder(endpointAddress+"/multipleValueset?"); while (iterator.hasNext()) { CodeAndCodeSystemSetDto codeAndCodeSystemSetDto=iterator.next(); builder.append("code:codeSystemOid="+codeAndCodeSystemSetDto.getConceptCode()+":"+codeAndCodeSystemSetDto.getCodeSystemOid()); if(builder.length()>1500) break; if (iterator.hasNext()) { builder.append("&"); } } restURL=builder.toString(); RestTemplate restTemplate = configureRestTemplate(); resp.addAll(restTemplate.getForObject(restURL,List.class)); } return resp; } ValueSetServiceImpl();  ValueSetServiceImpl(String endpointAddress);  ValueSetServiceImpl(String endpointAddress,
			SelfSignedSSLHelper selfSignedSSLHelper); @Override Set<String> lookupValueSetCategories(String code, String codeSystem); @Override List<Map<String, Object>> lookupValuesetCategoriesOfMultipleCodeAndCodeSystemSet(List<CodeAndCodeSystemSetDto> codeAndCodeSystemSetDtoList); @Override ValueSetQueryListDto RestfulValueSetCategories(
			ValueSetQueryListDto valueSetQueryListDtos); static final String PARAM_CODE; static final String PARAM_CODE_SYSTEM; static final String PARAM_CODE_AND_CODESYSTEM_PAIR; }
@SuppressWarnings("unchecked") @Test public void testLookupValuesetCategoriesOfMultipleCodeAndCodeSystemSet() { List<CodeAndCodeSystemSetDto> codeAndCodeSystemSetDtoList = new ArrayList<CodeAndCodeSystemSetDto>(); CodeAndCodeSystemSetDto codeAndCodeSystemSetDto1 = mock(CodeAndCodeSystemSetDto.class); CodeAndCodeSystemSetDto codeAndCodeSystemSetDto2 = mock(CodeAndCodeSystemSetDto.class); codeAndCodeSystemSetDtoList.add(codeAndCodeSystemSetDto1); codeAndCodeSystemSetDtoList.add(codeAndCodeSystemSetDto2); Collection<Map<String, Object>> response = new ArrayList<Map<String, Object>>(); Map<String, Object> responseMap = new HashMap<String, Object>(); responseMap.put("key1", "value1"); response.add(responseMap); doReturn(response).when(restTemplateMock).getForObject(anyString(), eq(List.class)); sut.lookupValuesetCategoriesOfMultipleCodeAndCodeSystemSet(codeAndCodeSystemSetDtoList); verify(restTemplateMock, times(1)).getForObject(anyString(), eq(List.class)); }