@Test
public void testNonEmptyPathsMustNotEndWithSlash() {

    assertThatThrownBy(() -> validate("/abc/"))
            .isInstanceOf(IllegalArgumentException.class)
            .hasMessage("Conjure paths must not end with a '/': /abc/");
}