/**
  * Tests that initialization from an invalid deployment descriptor won't work.
  *
  * @return void
  */
 public function testFromConfigurationInvalid()
 {
     // initialize the configuration
     $node = new SessionNode();
     $node->initFromFile(__DIR__ . '/_files/dd-statefulsessionbean.xml');
     // check that the descriptor has not been initialized
     $this->assertNull($this->descriptor->fromConfiguration($node));
 }
 /**
  * Tests the static newDescriptorInstance() method.
  *
  * @return void
  */
 public function testNewDescriptorInstance()
 {
     $this->assertInstanceOf('AppserverIo\\Description\\StatelessSessionBeanDescriptor', StatelessSessionBeanDescriptor::newDescriptorInstance());
 }