def METHOD_NAME(self):
    """For some Mendix 5 versions, Java version is not exposed, so
    you are supposed to infer the Java information from some exposed
    memoery statistics.
    This code is deprecated, but I am including unit tests against the
    theoretical implementation to be on the safe side.
    This may be overly defensive.
    """
    m2ee_about = M2EEResponse(action="about", json={"feedback": {}, "result": 0})
    runtime_version = MXVersion("5.21.0")
    # Non-matching values means Java 8. Apparently!
    stats = {"memory": {"used_nonheap": 0, "code": 123, "permanent": 345}}
    guessed_version = _guess_java_version(m2ee_about, runtime_version, stats)
    self.assertEqual(8, guessed_version)