@Test
public void testResourceAsFile() throws IOException {

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