PathDetails { public String getValue() { return value; } PathDetails(Element element);  PathDetails(
            Element element,
            PathDetails basePath); String getValue(); String getRegex(String paramName); @Override String toString(); @Override boolean equals(Object o); @Override int hashCode();  }
@Test public void regexInformationShouldNotBePartOfPath() { Element element = buildElement("{id: [0-9]*}/subpath/{sid:[0-9]{1,9}}"); PathDetails pathDetails = new PathDetails(element); assertThat(pathDetails.getValue()).isEqualTo("/{id}/subpath/{sid}"); }
@Test public void pathParameterWithoutRegexShouldNotBeChanged() { Element element = buildElement("{id: [0-9]*}/subpath/{sid}"); PathDetails pathDetails = new PathDetails(element); assertThat(pathDetails.getValue()).isEqualTo("/{id}/subpath/{sid}"); }