function it_should_error_when_calling_getRepository_for_a_type_that_does_not_exist()
{
$this->config->setSchemaFolder(__DIR__ . '/../resources/schema');
$this->domain->setSchemaName('example');
$this->beConstructedWith($this->config);
$this->shouldThrow(new \RuntimeException('Unable to load Repository for type "foo": Cannot find object type "foo" in schema.'))->duringGetRepository('foo');
$this->shouldThrow(new \RuntimeException('Unable to load Repository for type "user": Repository class "\\Foo\\Bar" not found.'))->duringGetRepository('user');
}