@Test
void putEmptyPathParam() {

    assertThatThrownBy(() -> pathParams.put("id", ""))
            .isInstanceOf(BadRequestException.class)
            .hasMessageContaining("path param must not be empty");
    assertThatThrownBy(() -> pathParams.put("id", "invalidURIValue%"))
            .isInstanceOf(BadRequestException.class);
}