MAPREDUCE-6048. Fixed TestJavaSerialization failure. Contributed by Varun Vasudev