public function testInsertBatch()
{
$e = $this->prophesize(Entity::class);
$this->operation->mutation(Argument::exact('insert'), Argument::type(Entity::class), Argument::exact(Entity::class, null))->shouldBeCalled()->willReturn(null);
$this->operation->commit()->shouldNotBeCalled();
$this->operation->allocateIdsToEntities(Argument::type('array'))->willReturn([$e->reveal()]);
$this->transaction->setOperation($this->operation->reveal());
$this->transaction->insertBatch([$e->reveal()]);
}