@Test
void validateInfo() {

    assertThatThrownBy(() -> validator.validateInfo(Map.of("key", "value"), 7))
            .isInstanceOf(BadRequestException.class)
            .hasMessageContaining("too long");
}