9 use \Magento\Framework\Reflection\AttributeTypeResolver;
    33         $this->typeProcessor = $this->createMock(\
Magento\Framework\Reflection\TypeProcessor::class);
    34         $this->configMock = $this->createMock(\
Magento\Framework\Api\ExtensionAttribute\Config::class);
    46         $context = 
'Some\Class';
    47         $this->model->resolveObjectType(
$code, 
$value, $context);
    54         $context = 
'Some\Class';
    56         $this->configMock->expects($this->once())->method(
'get')->willReturn([]);
    57         $this->assertEquals(
'stdClass', $this->model->resolveObjectType(
$code, 
$value, $context));
    64         $context = 
'\Some\Class';
    68                     'type' => \Magento\Framework\DataObject::class,
    73         $this->typeProcessor->expects($this->once())
    74             ->method(
'getArrayItemType')
    75             ->with(\
Magento\Framework\DataObject::class)
    76             ->willReturn(\
Magento\Framework\DataObject::class);
    78         $this->configMock->expects($this->once())->method(
'get')->willReturn(
$config);
    80             \
Magento\Framework\DataObject::class,
    81             $this->model->resolveObjectType(
$code, 
$value, $context)
    92         $context = 
'\Some\Class';
    96                     'type' => 
'\Some\Class',
   101         $this->typeProcessor->expects($this->once())
   102             ->method(
'getArrayItemType')
   103             ->with(
'\Some\Class')
   104             ->willReturn(
'\Some\Class');
   106         $this->configMock->expects($this->once())->method(
'get')->willReturn(
$config);
   107         $this->model->resolveObjectType(
$code, 
$value, $context);
   109         $this->expectExceptionMessage(
   110             'The "\Some\Class" class doesn\'t exist and the namespace must be specified. Verify and try again.' 
testResolveObjectTypeWithoutConfiguredAttribute()
testResolveObjectTypeWithConfiguredAttributeAndNonExistedClass()
testResolveObjectTypeWithConfiguredAttribute()
testResolveObjectTypeWithNonObjectValue()