This is true also for ClassLoader used by junit plugin
This is called 'class loader isolation'.
Taken from https://inside.java/2021/09/10/what-are-modules-about/
modules do support class loader isolation, for whatever it’s worth, with module layers. Layers might be appropriate at times (for example, they’re useful for a plugin architecture), and third-party libraries like Layrry can construct a layer hierarchy based on a configuration file.