How does UVM Comparator works?

In reply to cgales:

Thanks. I have another question. Let’s say 4 expected transactions came but only 3 transactions came, will the test still pass or will the comparator flag an error?