public function testCheckOverwriteWithException()
{
$e = $this->prophesize(Entity::class);
$e->populatedByService()->willReturn(false);
$e->key()->willReturn('foo');
$this->operation->checkOverwrite([$e->reveal()]);
}