def test_fcv_greater_than_server_version_warning(
        self, mock_logger, mock_client, mock_db_service
    ):
        """Tests the warning that's generated in the event that
        the feature compatability version is ahead of the server version.
        """

        server_version = Version(f"{foc.MONGODB_MIN_VERSION.major}.0.0")
        fc_version = Version(f"{foc.MONGODB_MIN_VERSION.major}.1.0")

        mock_admin = MagicMock()
        mock_client.admin = mock_admin
        mock_client.server_info.return_value = {"version": str(server_version)}

        mock_admin.command.return_value = {
            "featureCompatibilityVersion": {"version": str(fc_version)}
        }

        _update_fc_version(mock_client)

        # Check that the warning is triggered for FCV greater than server version
        mock_logger.warning.assert_any_call(
            "Your MongoDB feature compatibility is greater than your "
            "server version. "
            "This may result in unexpected consequences. "
            "Please manually update your database's feature compatibility "
            "version. "
            "You can suppress this exception by setting your "
            "`database_validation` config parameter to `False`. See "
            "https://docs.voxel51.com/user_guide/config.html#configuring-a-mongodb-connection "
            "for more information"
        )
Tests the warning that's generated in the event that
        the feature compatability version is ahead of the server version.
        
tests/unittests/fcv_tests.py