def METHOD_NAME(mocker, cobbler_api):
    # Arrange
    mock_service_restart = mocker.patch(
        "cobbler.utils.process_management.service_restart", return_value=0
    )
    dnsmasq.MANAGER = None
    test_manager = dnsmasq.get_manager(cobbler_api)
    # Act
    result = test_manager.restart_service()
    # Assert
    assert mock_service_restart.call_count == 1
    mock_service_restart.assert_called_with("dnsmasq")
    assert result == 0