@Test
public void noEmptyLabels() {

    Throwable thrown = Assertions.assertThrows(InvalidPatternException.class, () -> {
        String target = "/{}";
        SmithyPattern.builder()
                .segments(parser(target))
                .pattern(target)
                .build();
    });
    assertThat(thrown.getMessage(), containsString("Empty label declaration"));
}