MAPREDUCE-6191. Improve clearing stale state of Java serialization
                testcase.  (Sam Liu via Eric Yang)