@expectedException \InvalidArgumentException
public function testLocateResourceThrowsExceptionWhenNameIsNotValid() { $this ->getKernelForInvalidLocateResource() ->locateResource('Foo'); }