function it_should_convert_a_LdapObject_back_to_a_dn($connection)
{
$dn = 'CN=Chad,OU=Employees,DC=example,DC=com';
$ldapObject = new LdapObject(['dn' => $dn], ['user'], 'user', 'user');
$this->setOptions(['foo' => ['attribute' => 'cn', 'filter' => ['objectClass' => 'bar']]]);
$this->setAttribute('foo');
$this->setLdapConnection($connection);
$this->toLdap($ldapObject)->shouldBeEqualTo($dn);
}