@Test
public void sharedParameterPrefix() {

  PathTrie<Integer> trie = PathTrie.<Integer>builder()
      .add(HttpMethod.GET, "discovery/{version}/rest", 1234)
      .add(HttpMethod.GET, "discovery/{version}/rpc", 4321)
      .build();
  assertSuccessfulGetResolution(
      trie, "discovery/v1/rest", 1234, ImmutableMap.of("version", "v1"));
  assertSuccessfulGetResolution(
      trie, "discovery/v1/rpc", 4321, ImmutableMap.of("version", "v1"));
}