/**
  * @test
  * @expectedException \TYPO3\Flow\I18n\TranslationProvider\Exception\InvalidPluralFormException
  */
 public function getTranslationByIdThrowsExceptionWhenInvalidPluralFormProvided()
 {
     $this->mockPluralsReader->expects($this->any())->method('getPluralForms')->with($this->sampleLocale)->will($this->returnValue(array(\TYPO3\Flow\I18n\Cldr\Reader\PluralsReader::RULE_ONE, \TYPO3\Flow\I18n\Cldr\Reader\PluralsReader::RULE_OTHER)));
     $translationProvider = $this->getMockBuilder(\TYPO3\Flow\I18n\TranslationProvider\XliffTranslationProvider::class)->setMethods(array('getModel'))->getMock();
     $translationProvider->injectPluralsReader($this->mockPluralsReader);
     $translationProvider->getTranslationById('bar', $this->sampleLocale, \TYPO3\Flow\I18n\Cldr\Reader\PluralsReader::RULE_FEW, $this->sampleSourceName, $this->samplePackageKey);
 }