@Test
void fromJSONWithValidationError() {

    var bean = new TestBean();
    assertThatThrownBy(() -> reader.fromJSON(TestBean.class, Strings.bytes(JSON.toJSON(bean))))
            .isInstanceOf(ValidationException.class)
            .hasMessageContaining("validation failed");
}