@Test
void contextValueIsTooLong() {

    assertThatThrownBy(() -> log.context("key", "x".repeat(ActionLog.MAX_CONTEXT_VALUE_LENGTH + 1)))
            .isInstanceOf(Error.class)
            .hasMessageStartingWith("context value is too long");
}