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: class A {}
  class B {}
  ''');
      expect(helper.instantiatedClasses['A'], isNotNull);
      expect(helper.instantiatedClasses['B'], isNull);
    });
  
    test('Method invocation', () {
  
negative.code:   bar() {}
  }
  ''');
      helper.assertHasMethod('A.foo');
      helper.assertNoMethod('A.bar');
      helper.assertNoMethod('B.foo');
      helper.assertNoMethod('B.bar');
    });
  
    test('Method invocation on dynamic', () {
  