function it_should_clone_the_batch_objects_when_cloning_the_collection()
{
$batch = new Batch(Batch::TYPE['ADD'], 'foo');
$batches = new BatchCollection();
$batches->add($batch);
$new = clone $batches;
$batch->setAttribute('foobar');
$this->add($new->get(0));
$this->get(0)->getAttribute()->shouldBeEqualTo('foo');
}