@Test
void bindWithMismatchedType() {

    assertThatThrownBy(() -> beanFactory.bind(List.class, null, "instance"))
            .isInstanceOf(Error.class)
            .hasMessageContaining("instance type does not match");
}