testMocksGlobalFunctionUsingGlobalName() {
    testing.createGlobalFunctionMock('globalFoo');
    globalFoo().$returns('No, I am Spartacus!');

    globalFoo.$replay();
    assertEquals('No, I am Spartacus!', globalFoo());
    globalFoo.$verify();
    globalFoo.$tearDown();
  }
@suppress {undefinedVars} globalBar is created indirectly