@Test
public void should_matcher_with_one_path_param_match_not_match() throws Exception {

    StdRestxRequestMatcher matcher = new StdRestxRequestMatcher("GET", "/user/{name}");
    Optional<? extends RestxRequestMatch> match = matcher.match("GET", "/user/johndoe");
    assertThat(match.isPresent()).isTrue();
    assertThat(match.get().getPathParams()).isEqualTo(ImmutableMap.of("name", "johndoe"));
    assertThat(match.get().getPathParam("name")).isEqualTo("johndoe");
    match = matcher.match("POST", "/user/johndoe");
    assertThat(match.isPresent()).isFalse();
    match = matcher.match("GET", "/user/johndoe/details");
    assertThat(match.isPresent()).isFalse();
    match = matcher.match("GET", "/users/johndoe");
    assertThat(match.isPresent()).isFalse();
    match = matcher.match("GET", "/user");
    assertThat(match.isPresent()).isFalse();
    match = matcher.match("GET", "/user/");
    assertThat(match.isPresent()).isFalse();
}