[LINKEDDATA-1402] Mark junit as a test-only dependency
[LINKEDDATA-1402] Validate name overrides whenever they are used