anchor.diff:    foo(new A());
   }
   ''');
  -    expect(helper.methods['A.m1'], isNotNull);
  -    expect(helper.methods['A.m2'], isNotNull);
  +    helper.assertHasMethod('A.m1');
  +    helper.assertHasMethod('A.m2');
     });
   }
   
  
positive.code: foo() {
  }
  ''');
      expect(helper.functions['main'], isNotNull);
      expect(helper.functions['foo'], isNotNull);
    });
  
    test('Class instantiation', () {
  
negative.code:   foo(new A());
  }
  ''');
      helper.assertHasMethod('A.m1');
      helper.assertNoMethod('A.m2');
    });
  
    test('Method invocation on dynamic via cascade', () {
  