public function testRecognizesMissingClass()
{
$definition = new Definition();
$containerBuilder = new ContainerBuilder();
$validator = new ServiceDefinitionValidator($containerBuilder, $this->createMockDefinitionArgumentsValidator(), $this->createMockMethodCallsValidator());
$this->setExpectedException('Matthias\\SymfonyServiceDefinitionValidator\\Exception\\DefinitionHasNoClassException');
$validator->validate($definition);
}