public function throwsExceptionIfLazyBeanMethodDoesNotReturnAnything()
{
$this->beanFactory = new AnnotationBeanFactory(WrongReturnTypeConfiguration::class);
BeanFactoryRegistry::register($this->beanFactory);
$bean = $this->beanFactory->get('lazyBeanNotReturningAnything');
$bean->setTest('test');
}