MULE-8127: Fixing missing auth header issue. Adding test case in integra...

...tion tests. Moving matcher to enable easy reuse from other modules.
This should be created in a try-with-resources construction to avoid leaking resources.