see #16010 - use JMockit to enable more extensive test coverage (patch by ris, modified)
see https://github.com/openstreetmap/josm/pull/24/commits for details