Revert "tests/platforms: remove java from tests"

Let's try Java again :)

This reverts commit 0a3964a663b4ac8f0f4b6719fbf01a7a7905c0c3.