public function testAvoidSimilar()
{
$this->_object->setParameter(RequirementPasswordGenerator::PARAMETER_UPPER_CASE, 'AB')->setParameter(RequirementPasswordGenerator::PARAMETER_SIMILAR, 'B')->setOptionValue(RequirementPasswordGenerator::OPTION_UPPER_CASE, true)->setOptionValue(RequirementPasswordGenerator::OPTION_AVOID_SIMILAR, true);
$this->_object->setLength(4);
$this->assertSame('AAAA', $this->_object->generatePassword());
}