YARN-2519. Credential Provider related unit tests failed on Windows. Contributed by Xiaoyu Yao.