@Test
@Ignore("Fixed the original problem in XmlUtils.identityTransform(), that did not set a systemId for relative resolutions")
public void localClassPathFullPath() throws SAXException, IOException, ConfigurationException {

	ClassLoader localClassLoader = Thread.currentThread().getContextClassLoader();
	//Get the working directory
	final URL context = this.getClass().getResource("/");
	assertNotNull(context);
	//Get a random filename
	final String randomName = "myFile-"+Misc.createRandomUUID();
	//Find a file which does not exist, but also does not return NULL
	URL file = new URL(context, randomName);
	assertNotNull(file);
	
	ClassLoader dummyClassLoader = new ClassLoader(localClassLoader) {
		@Override
		public URL getResource(String name) {
			System.out.println("dummyClassLoader name ["+name+"]");
			try {
				//Only return a valid file when the ClassLoader tries to find relative files
				if(randomName.equals(name)) {
					return new URL(context, "file.xml");
				} else {
					return new URL(context, "file-not-found");
				}
			} catch (MalformedURLException e) {
				fail("what? "+e.getMessage());
				return null; //keep the compiler happy
			}
		}
	};
	ClassLoaderEntityResolver resolver = new ClassLoaderEntityResolver(dummyClassLoader);
	try{
		file.openStream();
		fail("This should fail!"); //Make sure the file cannot be found!
	}
	catch (IOException e) {}
	String systemId = file.getFile(); //Get the full absolute path to the non-existing file
	System.out.println("file to resolve ["+systemId+"]");
	InputSource inputSource = resolver.resolveEntity(publicId, systemId);
	assertNotNull(inputSource);
}