public function testGeneratePassword($segmentLength, $segmentCount, $segmentSeparator, $regExp)
{
$this->_object->setOptionValue(HybridPasswordGenerator::OPTION_UPPER_CASE, true)->setOptionValue(HybridPasswordGenerator::OPTION_LOWER_CASE, true)->setOptionValue(HybridPasswordGenerator::OPTION_NUMBERS, true)->setOptionValue(HybridPasswordGenerator::OPTION_AVOID_SIMILAR, true);
$this->_object->setSegmentLength($segmentLength);
$this->_object->setSegmentCount($segmentCount);
$this->_object->setSegmentSeparator($segmentSeparator);
$this->assertRegExp($regExp, $this->_object->generatePassword());
}