HDFS Credential Provider related Unit Test Failure. Contributed by Xiaoyu Yao.

(cherry picked from commit a23144fd8a1e399e431f2f272388ec109df37ab1)