Using the golden tool, generate expected metric files containing metric output from typical target systems.
For correctness, the test consists of a docker compose setup with one container running the target system, such as cassandra, kafka, tomcat - and a container running golden.
The jmx-scraper then runs and outputs to golden the otlp metrics it captures. The golden image then checks the metrics received to the expected yaml.
See https://github.com/signalfx/opentelemetry-ibm-mq-monitoring/tree/main/golden for an example.