it('should add loop protection to a simple while loop with curlies and multiple statements', inject(
    [LoopProtectionService],
    (service: LoopProtectionService) => {
      expect(service.protect('file.ts', `while(true)`)).toEqual(
        withLoopProtection(`while(true){loopBreaker();}`)