/**
  * Reset the container and with it any state
  */
 protected function tearDown()
 {
     parent::tearDown();
     foreach ($this->revisions as $revision) {
         try {
             $this->getStorage()->multiRemove(array($revision));
         } catch (\MWException $e) {
             // ignore - lifecyclehandlers may cause issues with tests, where
             // not all related stuff is loaded
         }
     }
     foreach ($this->workflows as $workflow) {
         try {
             $this->getStorage()->multiRemove(array($workflow));
             $found = $this->getStorage()->find('TopicListEntry', array('topic_id' => $workflow->getId()));
             if ($found) {
                 $this->getStorage()->multiRemove($found);
             }
         } catch (FlowException $e) {
             // nothing, was probably never stored...
         }
     }
     // Needed because not all cases do the reset in setUp yet
     Container::reset();
 }