function it_should_replace_parameter_values_with_their_actual_values()
{
$schema = new LdapObjectSchema('ad', 'user');
$schema->setAttributeMap(['firstName' => 'givenName', 'lastName' => 'sn', 'emailAddress' => 'mail', 'name' => 'cn']);
$this->setLdapObjectSchema($schema);
$this->setParameter('_domain_', 'foo.bar');
$this->hydrateToLdap($this->objectToLdap)->shouldHaveKeyWithValue('givenName', 'Egon');
$this->hydrateToLdap($this->objectToLdap)->shouldHaveKeyWithValue('sn', 'Spengler');
$this->hydrateToLdap($this->objectToLdap)->shouldHaveKeyWithValue('mail', '[email protected]');
$this->hydrateToLdap($this->objectToLdap)->shouldHaveKeyWithValue('cn', 'Egon');
}