@Test
public void testNewBuilderForConsecutiveSlashes() {

    final String jsonPointer = "/ns/thing/features//properties";
    final JsonPointerInvalidException exception =
            JsonPointerInvalidException.newBuilderForConsecutiveSlashes(jsonPointer).build();
    assertThat(exception)
            .hasMessageContaining(jsonPointer)
            .satisfies(e -> assertThat(((JsonPointerInvalidException) e).getDescription())
                    .contains("Consecutive slashes in JSON pointers are not supported."));
}