public static String[] extractPathComponentsFromUriTemplate(String uriTemplate)
  {
    final String normalizedUriTemplate = NORMALIZED_URI_PATTERN.matcher(uriTemplate).replaceAll("");
    final UriTemplate template = new UriTemplate(normalizedUriTemplate);
    final String uri = template.createURI(_EMPTY_STRING_ARRAY);
    return URI_SEPARATOR_PATTERN.split(uri);
  }
@Test
  public void testExtractionWithoutTemplateVariables()
  {
    final String[] components = URIParamUtils.extractPathComponentsFromUriTemplate("foo/bar");
    Assert.assertEquals(components.length, 2);
    Assert.assertEquals(components[0], "foo");
    Assert.assertEquals(components[1], "bar");
  }