/**
  * @return MethodCollection
  */
 public function getMethodCollection()
 {
     if (null === $this->methodCollection) {
         $this->methodCollection = $this->loader->load();
     }
     return $this->methodCollection;
 }
 public function it_should_throw_exception_if_method_not_found(LoaderInterface $loader)
 {
     $loader->load()->willReturn(new MethodCollection());
     $this->shouldThrow(MethodNotFoundException::class)->duringDispatch('sampleMethod', [1, 2, 3]);
 }