/**
  * Test if this method is available in the reflection method list.
  *
  * @return void @expectedException AppserverIo\Lang\Reflection\ReflectionException
  */
 public function testGetMethodWithException()
 {
     $this->reflectionClass->getMethod('someUnknownMethod');
 }
 /**
  * Check that the merge() method with descriptor containing an other
  * method name throws an Exception.
  *
  * @return void
  * @expectedException AppserverIo\Routlt\Description\DescriptorException
  */
 public function testMergeWithNotMatchingDescriptor()
 {
     // create a reflection class and load the reflection method
     $reflectionClass = new ReflectionClass(__CLASS__);
     $reflectionMethod = $reflectionClass->getMethod('nonameAction');
     // initialize the descriptor instance
     $this->descriptor->fromReflectionMethod($reflectionMethod);
     $descriptor = new ActionDescriptor();
     $descriptor->setMethodName('otherNameAction');
     // merge the descriptors
     $this->descriptor->merge($descriptor);
 }