fixes #5470
fixes #5470 final version
Merge pull request #5475 from dotCMS/issue-5470-error-on-junit-test

Issue 5470 error on junit test