Add a test to ensure that the CI server does not accidentally build with the wrong JDK version. Issue: SPR-10569