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

    mockGlobal.$replay();
    assertEquals('No, I am Spartacus!', globalFoo());
    mockGlobal.$verify();
  }
@suppress {undefinedVars,checkTypes} suppression added to enable type
     checking