function verifyNotificationFilterNotSupportedError (createProtocol, notificationFilter, fn) {
  const recorder = new utils.MessageRecordingConnection()
  const protocol = createProtocol(recorder)

  expect(() => fn(protocol)).toThrowError(
    'Driver is connected to a database that does not support user notification filters. ' +
    'Please upgrade to Neo4j 5.7.0 or later in order to use this functionality. ' +
    `Trying to set notifications to ${JSON.stringify(notificationFilter)}.`
  )
}
@param {function(recorder:MessageRecorder):BoltProtocolV1} createProtocol The protocol factory
@param {string[]} notificationFilter The notification filters.
@param {function(protocol: BoltProtocolV1)} fn