@Test
public void literalsMustNotContainOpenBrace() {

    Throwable thrown = Assertions.assertThrows(InvalidPatternException.class, () -> {
        EndpointTrait.builder()
                .hostPrefix("foo-{baz")
                .build();
    });
    assertThat(thrown.getMessage(), containsString("Unclosed label found in pattern"));
}