@Test
public void detectsCaseSensitiveDuplicateQueryStringLiterals() {

    Throwable thrown = Assertions.assertThrows(InvalidUriPatternException.class, () -> {
        UriPattern.parse("/foo?baz=bar&baz=bam");
    });
    assertThat(thrown.getMessage(), containsString("Literal query parameters must not be repeated"));
}