}
@Test
public void removesFormerTemplateParametersFromPath() throws Exception {
RestResourceConfig config = RestResourceConfig.Factory.newInstance();
RestParametersConfig restParametersConfig = config.addNewParameters();
RestParameterConfig parameterConfig = restParametersConfig.addNewParameter();
String parameterName = "theName";
parameterConfig.setName(parameterName);
parameterConfig.setStyle(RestParameterConfig.Style.Enum.forInt(RestParamsPropertyHolder.ParameterStyle.TEMPLATE.ordinal()));
config.setPath("/actual_path");
RestResource restResource = new RestResource(parentService, config);
restResource.getParams().getProperty(parameterName).setStyle(RestParamsPropertyHolder.ParameterStyle.QUERY);
assertThat(restResource.getPath(), not(containsString(parameterName)));