@Test
public void testValidatorLoading() {

	
	ClassLoader ccl = this.getClass().getClassLoader();
	URLClassLoader ecl = new URLClassLoader(new URL[] { ccl.getResource("pmodeManager/") }, ccl);    	
	Thread.currentThread().setContextClassLoader(ecl);
	
	PModeManager manager = null; 
	try {
		manager = new PModeManager(config);
	} catch (PModeSetException pse) {
		fail();
	}
	
	try {
ield pmodeValidators = PModeManager.class.getDeclaredField("validators");
modeValidators.setAccessible(true);
ist<IPModeValidator> validators = (List<IPModeValidator>) pmodeValidators.get(manager);
ssertNotNull(validators);
ssertEquals(2, validators.size());
ssertTrue(  validators.parallelStream().anyMatch(v -> v.getName().equals(new TestValidatorAllWrong().getName()))
	  && validators.parallelStream().anyMatch(v -> v.getName().equals(new TestValidatorAllGood().getName())));
	} catch (Throwable t) {
		t.printStackTrace();
		fail();
	}
	Thread.currentThread().setContextClassLoader(ccl);
}