@Test
void parseInt() {

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