Add decoding test

This commit simply adds a @PathVariable decoding test to reproduce a
scenario exposed in SPR-11474

Issue: SPR-11474