public function testCheckContactUsFormDoesNotCheckCaptchaWhenItIsNotRequired()
 {
     $this->helperMock->expects($this->any())->method('getCaptcha')->with('contact_us')->willReturn($this->captchaMock);
     $this->captchaMock->expects($this->any())->method('isRequired')->willReturn(false);
     $this->captchaMock->expects($this->never())->method('isCorrect');
     $this->checkContactUsFormObserver->execute(new \Magento\Framework\Event\Observer());
 }