function setupKeyboardLayoutMap( hooks, layoutMap = defaultLayoutMap ) {
	hooks.beforeEach(function() {
		this._getLayoutMapStub = sinon.stub( navigator.keyboard, "getLayoutMap" )
			.resolves( layoutMap );
		this.owner.register( "keyboardlayoutmap:main", layoutMap, { instantiate: false } );
	});

	hooks.afterEach(function() {
		this._getLayoutMapStub.restore();
	});
}
Stubs the KeyboardMap API and the "keyboard-layout-map" application initializer,
which is required by the HotkeyService and all modules using the HotkeyService
@param {NestedHooks} hooks
@param {KeyboardLayoutMap} layoutMap