@Test
void injectStaticMembers() {

    assertThatThrownBy(() -> beanFactory.create(BeanWithInjectStaticField.class))
            .isInstanceOf(Error.class)
            .hasMessageContaining("static field must not have @Inject");
}