@Test
public void sharedPrefix() {

  PathTrie<Integer> trie = PathTrie.<Integer>builder()
      .add(HttpMethod.GET, "discovery/v1/rest", 1234)
      .add(HttpMethod.GET, "discovery/v2/rest", 4321)
      .build();
  assertSuccessfulGetResolution(trie, "discovery/v1/rest", 1234);
  assertSuccessfulGetResolution(trie, "discovery/v2/rest", 4321);
  assertFailedGetResolution(trie, "");
  assertFailedGetResolution(trie, "discovery");
  assertFailedGetResolution(trie, "discovery/v1");
}