/**
  * Tests that initialization from a reflection class works as expected.
  *
  * @return void
  */
 public function testFromReflectionClass()
 {
     // initialize the annotation aliases
     $aliases = array(Stateless::ANNOTATION => Stateless::__getClass());
     // create the reflection class
     $reflectionClass = new ReflectionClass(__CLASS__, array(), $aliases);
     // check that the descriptor has been initialized
     $this->assertSame($this->descriptor, $this->descriptor->fromReflectionClass($reflectionClass));
     $this->assertSame('StatelessSessionBeanDescriptorTest', $this->descriptor->getName());
     $this->assertSame('AppserverIo\\Description\\StatelessSessionBeanDescriptorTest', $this->descriptor->getClassName());
     $this->assertCount(0, $this->descriptor->getEpbReferences());
     $this->assertCount(0, $this->descriptor->getResReferences());
     $this->assertCount(0, $this->descriptor->getReferences());
 }