function it_should_remove_batches_when_specified_by_a_converter_implementing_OperationGeneratorInterface($connection)
{
$dn = 'cn=Chad,dc=foo,dc=bar';
$batch = new BatchCollection($dn);
$operation = new BatchModifyOperation($dn);
$batch->add(new Batch(Batch::TYPE['ADD'], 'groups', ['cn=foo,dc=example,dc=local', 'cn=bar,dc=foo,dc=bar']));
$batch->add(new Batch(Batch::TYPE['REMOVE'], 'groups', ['cn=foo,dc=example,dc=local', 'cn=foobar,dc=foo,dc=bar']));
$this->beConstructedWith($this->schema, $batch, AttributeConverterInterface::TYPE_MODIFY);
$this->setLdapConnection($connection);
$this->setDn($dn);
$this->setOperation($operation);
$this->toLdap()->toArray()->shouldHaveCount(0);
}