Use final keyword in MessageHeaders
Fix exception mock request builder

Issue: SPR-11043