@Test
void validate() {

    var bean = new TestBeanWithNotInjectedField();
    var validator = new InjectValidator(bean);
    assertThatThrownBy(validator::validate)
            .isInstanceOf(Error.class)
            .hasMessageContaining("field with @Inject is not bound to any value")
            .hasMessageContaining(".dependency2");
}