function fakeReceiverAvailability(yes) {
    expect(mockCastApi.ApiConfig).toHaveBeenCalledTimes(1);
    const onReceiverStatusChanged = mockCastApi.ApiConfig.calls.argsFor(0)[2];
    onReceiverStatusChanged(yes ? 'available' : 'unavailable');
  }
@param {boolean} yes If true, simulate receivers being available.