def test_update_fcv_success(self, mock_db_service):
        """Ensures nominal usage of _update_fc_version

        Tests the next four versions and, for each, the
        _update_fc_version is properly triggered.
        """
        test_cases = [
            (
                Version(
                    f"{i+1+foc.MONGODB_SERVER_FCV_REQUIRED_CONFIRMATION.major}.0.0"
                ),
                Version(
                    f"{i+foc.MONGODB_SERVER_FCV_REQUIRED_CONFIRMATION.major}.0.0"
                ),
            )
            for i in range(1, 4)
        ]

        for server_version, fc_version in test_cases:
            with self.subTest(
                server_version=server_version, fc_version=fc_version
            ), patch("pymongo.MongoClient") as mock_client, patch(
                "fiftyone.core.odm.database.logger"
            ) as mock_logger:

                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 FCV update attempt was made with the correct version
                expected_call = self._get_expected_update_call(
                    Version(f"{server_version.major}.0")
                )
                mock_admin.command.assert_any_call(expected_call)
                
                mock_logger.warning.assert_any_call(
                    "Your MongoDB server version is newer than your feature "
                    "compatibility version. "
                    "Upgrading the feature compatibility version now. "
                    "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"
                )
Ensures nominal usage of _update_fc_version

        Tests the next four versions and, for each, the
        _update_fc_version is properly triggered.
        
tests/unittests/fcv_tests.py