/**
  * @param PublicResource $resource
  *
  * @return array
  */
 protected function getResourceAttributes(PublicResource $resource)
 {
     $result = [];
     $entityClass = $resource->getEntityClass();
     /** @var EntityAliasResolver $entityAliasResolver */
     $entityAliasResolver = $this->getContainer()->get('oro_entity.entity_alias_resolver');
     $result['Alias'] = $entityAliasResolver->getPluralAlias($entityClass);
     /** @var EntityClassNameProviderInterface $entityClassNameProvider */
     $entityClassNameProvider = $this->getContainer()->get('oro_entity.entity_class_name_provider');
     $result['Name'] = $entityClassNameProvider->getEntityClassName($entityClass);
     $result['Plural Name'] = $entityClassNameProvider->getEntityClassPluralName($entityClass);
     return $result;
 }
 public function testGetEntityClass()
 {
     $className = 'Test\\Class';
     $resource = new PublicResource($className);
     $this->assertEquals($className, $resource->getEntityClass());
 }