testOnLoad() {
    /** @suppress {checkTypes} suppression added to enable type checking */
    const m = new ModuleInfo();

    m.setModuleConstructor(TestModule);
    m.onLoad(/** @type {?} */ (() => {}));
    assertTrue(m.isLoaded());

    const module = m.getModule();
    assertNotNull(module);
    assertTrue(module instanceof TestModule);

    m.dispose();
    assertTrue(m.isDisposed());
    assertTrue(
        'Disposing of ModuleInfo should dispose of its module',
        module.isDisposed());
  }
Test loaded module info. @suppress {checkTypes} suppression added to
     enable type checking