@Test
public void testResourceAsURL() throws IOException {

    assertReadable(ResourceLoader.getResourceAsURL(getExistingResourcePath()));
    assertReadable(ResourceLoader.getResourceAsURL("/"+getExistingResourcePath()));
    assert ResourceLoader.getResourceAsURL(getNonExistingResourcePath()) == null;
    assertReadable(ResourceLoader.getResourceAsURL(getExistingResourcePath(), getThisClassLoader(), getRootPackageFile()));
    assertReadable(ResourceLoader.getResourceAsURL("/"+getExistingResourcePath(), getThisClassLoader(), getRootPackageFile()));
    assert ResourceLoader.getResourceAsURL(getNonExistingResourcePath(), getThisClassLoader(), getRootPackageFile()) == null;
}