DDMRESTDataProvider implements DDMDataProvider { protected Map<String, String> getPathParameters( DDMDataProviderRequest ddmDataProviderRequest, DDMRESTDataProviderSettings ddmRESTDataProviderSettings) { Map<String, Object> parameters = getParameters( ddmDataProviderRequest, ddmRESTDataProviderSettings); Map<String, String> pathParameters = new HashMap<>(); Matcher matcher = _pathParameterPattern.matcher( ddmRESTDataProviderSettings.url()); while (matcher.find()) { String parameterName = matcher.group(1); if (parameters.containsKey(parameterName)) { pathParameters.put( parameterName, GetterUtil.getString(parameters.get(parameterName))); } } return pathParameters; }  @Override DDMDataProviderResponse getData(
			DDMDataProviderRequest ddmDataProviderRequest); @Override Class<?> getSettings();  }
@Test public void testGetPathParameters() { Map<String, String> pathParameters = _ddmRESTDataProvider.getPathParameters( _createDDMDataProviderRequest(), _createDDMRESTDataProviderSettings()); Assert.assertEquals( pathParameters.toString(), 1, pathParameters.size()); Assert.assertEquals("1", pathParameters.get("countryId")); }