Fix broken MBean test: new File(URL.getPath()) is the wrong way to create filenames from "file:" URLs coming from Classloader. The problem: some characters are escaped, e.g. the whitespace in my user's home directory. The correct way is to cast to URI using toURI() and invoking the URI-ctor in File (this is the "official" way to go).