}
@Test
public void testSpecialCharacterInFileURL() throws IOException {
String tmp = System.getProperty("java.io.tmpdir");
FileResourceManager fileResourceManager = new FileResourceManager(new File(tmp), 1);
File file = new File(tmp, "1#2.txt");
FileOutputStream f = null;
try {
f = new FileOutputStream(file);
f.write("Hi".getBytes());
} finally {
IoUtils.safeClose(f);
}
Resource res = fileResourceManager.getResource("1#2.txt");
InputStream in = null;
try {
in = res.getUrl().openStream();
Assert.assertEquals("Hi", FileUtils.readFile(in));
} finally {