ValueSetServiceImpl implements ValueSetService { @Override public Set<String> lookupValueSetCategories(String code, String codeSystem) { if (singleCodeRestUrl == null) { initRestUrl(); } Map<String, String> parameterMap = createParameterMap(code, codeSystem); RestTemplate restTemplate = configureRestTemplate(); ValueSetQueryDto resp = restTemplate.getForObject(singleCodeRestUrl, ValueSetQueryDto.class, parameterMap); return resp.getVsCategoryCodes(); } 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 testLookupValueSetCategories() { ValueSetQueryDto queryMock = mock(ValueSetQueryDto.class); @SuppressWarnings("rawtypes") Set valueSetCategorySetMock = mock(Set.class); when( restTemplateMock.getForObject(eq(EXPECTED_REST_URL), eq(ValueSetQueryDto.class), isA(Map.class))) .thenReturn(queryMock); when(queryMock.getVsCategoryCodes()) .thenReturn(valueSetCategorySetMock); @SuppressWarnings("rawtypes") Set response = sut .lookupValueSetCategories(CODE_MOCK, CODE_SYSTEM_MOCK); assertEquals(valueSetCategorySetMock, response); }