def METHOD_NAME(self, mock_component_operation: ComponentOperations):
    name = "random_name"
    component = Mock(ComponentVersionData(properties=Mock(ComponentVersionDetails())))
    version = "1"
    mock_component_operation._version_operation.get.return_value = component
    mock_component_operation.archive(name=name, version=version)
    mock_component_operation._version_operation.begin_create_or_update.assert_called_with(
        name=name,
        version=version,
        registry_name=mock_component_operation._registry_name,
        body=component,
        resource_group_name=mock_component_operation._resource_group_name,
    )