public function testInjectingScopedService()
 {
     $injector = new Injector();
     $config = array('AnotherService', 'AnotherService.DottedChild' => 'SampleService');
     $injector->load($config);
     $service = $injector->get('AnotherService.DottedChild');
     $this->assertEquals(get_class($service), 'SampleService');
     $service = $injector->get('AnotherService.Subset');
     $this->assertEquals(get_class($service), 'AnotherService');
     $injector->setInjectMapping('TestObject', 'sampleService', 'AnotherService.Geronimo');
     $testObject = $injector->create('TestObject');
     $this->assertEquals(get_class($testObject->sampleService), 'AnotherService');
     $injector->setInjectMapping('TestObject', 'sampleService', 'AnotherService.DottedChild.AnotherDown');
     $testObject = $injector->create('TestObject');
     $this->assertEquals(get_class($testObject->sampleService), 'SampleService');
 }