function it_should_get_a_rename_operation()
{
$newRdn = 'cn=foobar';
$newLocation = 'ou=foo,dc=foo,dc=bar';
$deleteOldRdn = false;
$this->beConstructedWith('dc=foo,dc=bar', $newLocation, $newRdn, $deleteOldRdn);
$this->toOperation()->shouldReturnAnInstanceOf('LdapTools\\Operation\\RenameOperation');
$this->toOperation()->getNewRdn()->shouldBeEqualTo($newRdn);
$this->toOperation()->getNewLocation()->shouldBeEqualTo($newLocation);
$this->toOperation()->getDeleteOldRdn()->shouldBeEqualTo($deleteOldRdn);
}