[mezmoexporter] Test refactoring (#10585)
[mezmoexporter] Test refactoring (#10585)

Some light refactoring in the `mezmoexporter` test suite to facilitate
easier testing in the future.
open-telemetry/opentelemetry-collector-contrib,open-telemetry/opentelemetry-collector-contrib