@Test
void parseLong() {

    assertThat(PathParamHelper.toLong("100")).isEqualTo(100);
    assertThatThrownBy(() -> PathParamHelper.toLong("X"))
            .isInstanceOf(BadRequestException.class)
            .hasMessageContaining("failed to parse long");
}