public function testIsValid_FieldInRange_Success()
{
// mock of document
$document = $this->getMock('\\Sokil\\Mongo\\Document', array('rules'), array($this->collection));
$document->expects($this->any())->method('rules')->will($this->returnValue(array(array('some-field-name', 'in', 'range' => array('acceptedValue1', 'acceptedValue2')))));
// required field empty
$this->assertTrue($document->isValid());
// required field set to valid value
$document->set('some-field-name1', 'acceptedValue1');
$this->assertTrue($document->isValid());
}