TRUNK-5816 PowerMock not supported on JUnit 5
We can thus only test the valid case since there is no way for us to
mock static methods. Mockito does not support that.
Since JUnit 5 needs at minimum a JRE 8 this test should always pass
irrespective of the JRE we are using to run our tests