@Test
public void testStorageLoading() {

	
	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 pmodeStorage = PModeManager.class.getDeclaredField("deployedPModes");
modeStorage.setAccessible(true);
PModeSet storageComp = (IPModeSet) pmodeStorage.get(manager);
ssertNotNull(storageComp);
ssertEquals(TestNOpPModeSet.class, storageComp.getClass());			
	} catch (Throwable t) {
		t.printStackTrace();
		fail();
	}
	TestNOpPModeSet.failOnInit = true; 
	try {
		manager = new PModeManager(config);
		fail();
	} catch (PModeSetException pse) {
		// Correct
	}
	Thread.currentThread().setContextClassLoader(ccl);
}