[SPARK-4409] Hopefully fixed Java Test