Missing unit test coverage for extracting java version from `java -version`.

+review REVIEW-5075