boolean () { ClassLoader loader = TestClassCollector.createUsersClassLoader(myConfiguration); try { Class<?> aClass = loader.loadClass("junit.runner.Version"); Method id = aClass.getDeclaredMethod("id"); Object result = id.invoke(null); return result instanceof String && VersionComparatorUtil.compare("4.12", (String)result) <= 0; } catch (Throwable e) { LOG.debug(e); return false; } }