public function setUp()
 {
     $this->dm = $this->createDocumentManager();
     $this->dm->setLocaleChooserStrategy(new LocaleChooser($this->localePrefs, 'en'));
     $this->node = $this->resetFunctionalNode($this->dm);
     $this->dm->clear();
     $this->session = $this->dm->getPhpcrSession();
     $this->metadata = $this->dm->getClassMetadata($this->class);
     $this->doc = new Article();
     $this->doc->id = '/functional/' . $this->testNodeName;
     $this->doc->author = 'John Doe';
     $this->doc->topic = 'Some interesting subject';
     $this->doc->setText('Lorem ipsum...');
     $this->doc->setSettings(array());
     $this->doc->assoc = array('key' => 'value');
 }