### Question:
ResourceUtil { public static File getFile(URL resourceUrl) throws FileNotFoundException { return getFile(resourceUrl, "URL"); }  static File getFile(URL resourceUrl); static File getFile(URL resourceUrl, String description); static URI toURI(URL url); static URI toURI(String location); static final String URL_PROTOCOL_FILE; }### Answer:
@Test public void testGetFile() throws Exception { URL url = this.getClass().getClassLoader().getResource("test-resource-utils.properties"); File file = ResourceUtil.getFile(url); Properties properties = new Properties(); properties.load(new FileInputStream(file)); Assert.assertEquals(properties.getProperty("keyA"), "A"); Assert.assertEquals(properties.getProperty("keyB"), "B"); }