public function testEntity() { $key = $this->prophesize(Key::class); $e = $this->operation->entity($key->reveal()); $this->assertInstanceOf(Entity::class, $e); }