public function testCleanAndCommit()
 {
     $testTitle = "Ipsum Lorem Vehicula";
     $nodeSource = Kernel::getService('em')->getRepository('GeneratedNodeSources\\NSPage')->findOneBy(array('title' => $testTitle));
     if (null !== $nodeSource) {
         try {
             $solrDoc = new SolariumNodeSource($nodeSource, Kernel::getService('solr'));
             $solrDoc->cleanAndCommit();
             $this->assertFalse($solrDoc->getDocumentFromIndex());
         } catch (SolrServerNotAvailableException $e) {
         } catch (HttpException $e) {
             return;
         }
     }
 }