public function testIsValid_TypeValidator_TypeNotSpecified()
{
// 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', 'type'))));
$document->set('some-field-name', 42);
$document->validate();
}