public function retrievingProtectedBeanByAlias()
{
$this->beanFactory = new AnnotationBeanFactory(BeanConfigurationWithAliases::class);
BeanFactoryRegistry::register($this->beanFactory);
self::assertFalse($this->beanFactory->has('internalServiceWithAlias'));
self::assertTrue($this->beanFactory->has('aliasIsPublicForInternalService'));
self::assertInstanceOf(SampleService::class, $this->beanFactory->get('aliasIsPublicForInternalService'));
}