function it_should_persist_an_ldap_object_that_has_no_schema_type($connection)
{
$dn = 'cn=user,dc=foo,dc=bar';
$ldapObject = new LdapObject(['dn' => $dn]);
$ldapObject->set('foo', 'bar');
$batch = new BatchCollection($dn);
$batch->add(new Batch(Batch::TYPE['REPLACE'], 'foo', 'bar'));
$connection->execute(new BatchModifyOperation($dn, $batch))->shouldBeCalled();
$this->persist($ldapObject);
}