@Test
public void testLoadFileUrl() throws IOException, NamingException {

    LOG.info("testLoadFileProperties");
    final Properties props = new Properties();
    try {
        GuiceUtils.loadUrl(props, "file:non/existing/path/but/if/it/exists/it/is/really/weird.txt");
        Assert.fail("Did not expect to find this");
    } catch (final FileNotFoundException e) {
        // Expected exception.
    }
    // Find file path to classpath resource.
    final URL url = this.getClass().getClassLoader().getResource(PROPERTY_FILE_SIMPLE);
    assert url != null;
    final String fileLocation = url.getFile();
    GuiceUtils.loadUrl(props, "file:" + fileLocation);
    Assert.assertEquals(3, props.size());
}