public function testTryToUseInvalidNameOnTypeRegistrationThrowsException()
 {
     $instance = new DeferredCallbackLoader();
     $this->setExpectedException('InvalidArgumentException');
     $instance->registerExpectedReturnType(new \stdClass(), 'Bar');
 }