KNOX-319: Fixed test issue causing build failure on windows.
(cherry picked from commit 25c3c695422ded37bf0dfd93e933bccc2b1dc45b)
Merge remote branch 'origin/apache-ref/v0.4.0' into baikal-GA-0.4.0