DISCLAIMER: I am a beginner developer who participated through GCI.
However, upon testing this, this does not work and results in the following error.
I have tried installing this on on Eclipse 2018-09 and Eclipse Mars. However, downgrading further, I would need to downgrade to Luna, of which apparently does not support Java 8.
It crashes with the error.
If there would be a different or more updated way of writing unit tests, I think this should be documented in the Unit Testing guide.
However, if this is truly an issue, I think for starting OpenMRS contributors like me, it could be useful to edit this, and provide troubleshooting this section, if ever I am doing something wrong.