public function testConvertValueEntityWithKey()
{
$type = 'entityValue';
$val = ['key' => ['partitionId' => ['namespaceId' => 'bar'], 'path' => [['kind' => 'kind', 'id' => '2']]], 'properties' => ['prop' => ['stringValue' => 'test']]];
$res = $this->mapper->convertValue($type, $val);
$this->assertInstanceOf(Entity::class, $res);
$this->assertInstanceOf(Key::class, $res->key());
$key = $res->key()->keyObject();
$this->assertEquals('bar', $key['partitionId']['namespaceId']);
$this->assertEquals([['kind' => 'kind', 'id' => '2']], $key['path']);
$this->assertEquals('test', $res['prop']);
}