function it_throws_an_exception_if_locators_do_not_support_classname($locator1)
{
$this->registerLocator($locator1);
$locator1->supportsClass('Some\\Class')->willReturn(false);
$this->shouldThrow('RuntimeException')->duringCreateResource('Some\\Class');
}