NH-3198, Proposal how to fix - Have Mapping By Code Support Dynamic Comp...

Proposal of a fix:
NH-3198 - Have Mapping By Code Support Dynamic Component Inside Join

There are three adjustments in the code, One new test (Not the best, comparing expected and resulting XML...)

Test are failing because of line endings. Please change it to assert specific items you want to check. Please see other mapping-by-code tests.