Make JavaTestKit match TestKit, see #3042

* Added a few methods
* Added (copied and adjusted) JavaDoc