@Test
void send() {

    var writer = new ResponseBeanWriter();
    writer.register(TestBean.class, new BeanClassValidator());
    var context = new ResponseHandlerContext(writer, null);
    var body = new BeanBody(new TestBean());
    assertThatThrownBy(() -> body.send(sender, context))
            .isInstanceOf(ValidationException.class);
}