Issue #2782 Update to Java testing docs

Fixes #2782. Updates Java testing docs to more closely follow content and examples of the Scala testing docs.