def METHOD_NAME(mocker, queueDict, queuesExpected):
    """Test the getQueuesResolvedEnhanced function"""
    queueCECache = {}
    queueDictLocal = copy.deepcopy(queueDict)
    ce = MagicMock()
    ce.isValid = MagicMock(return_value=S_OK())
    ceFactoryModule = "DIRAC.Resources.Computing.ComputingElementFactory"
    mocker.patch(f"{ceFactoryModule}.ComputingElementFactory.getCE", return_value=S_OK(ce))
    queueDictResolved = getQueuesResolved(queueDictLocal, queueCECache)
    assert queueDictResolved["OK"]
    for qName, qDictResolved in queueDictResolved["Value"].items():
        assert sorted(qDictResolved) == sorted(queuesExpected[qName])