/**
     * @test
     */
    public function testRenderAFacete()
    {
        $expected = '<li class="">
		<a href="de/start/?tx_solr%5Bq%5D%5B0%5D=test&amp;tx_solr%5Bfilter%5D%5B0%5D=TestFacet%253Atestoption">testoption</a> 1
		</li>';
        $actual = $this->facetRenderer->render();
        $this->assertEquals($expected, $actual);
    }
 /**
  * Encodes the facet option values from raw Lucene queries to values that
  * can be easily used in rendering instructions and URL generation.
  *
  * (non-PHPdoc)
  * @see \ApacheSolrForTypo3\Solr\Facet\AbstractFacetRenderer::getFacetOptions()
  */
 public function getFacetOptions()
 {
     $facetOptions = array();
     $facetOptionsRaw = parent::getFacetOptions();
     $filterEncoder = GeneralUtility::makeInstance('ApacheSolrForTypo3\\Solr\\Query\\FilterEncoder\\QueryGroup');
     foreach ($facetOptionsRaw as $facetOption => $numberOfResults) {
         $facetOption = $filterEncoder->encodeFilter($facetOption, $this->facetConfiguration);
         $facetOptions[$facetOption] = $numberOfResults;
     }
     return $facetOptions;
 }