@Test
void validateContext() {

    assertThatThrownBy(() -> validator.validateContext(Map.of("context", "12345"), 3))
            .isInstanceOf(BadRequestException.class)
            .hasMessageContaining("too long");
}