Why do you need Java four times in tests? They are all the same.
The main, I would say, defining, feature of Java is "no of undefined behavior". Aka "write once, run everywhere".