@Override
    public URL getResource(String name) {
        URL url = null;
        for (ClassLoader classLoader : classLoaders) {
            url = classLoader.getResource(name);

            if (url != null) {
                break;
            }
        }

        if (url == null && LOG.isTraceEnabled()) {
            LOG.trace("Resource " + name + " not found.");
        }

        return url;
    }
@Test
    public void getResourceReturnsNullIfResourceDoesNotExist() throws Exception {
        final ChainingClassLoader chainingClassLoader = new ChainingClassLoader(getClass().getClassLoader());
        final URL resource = chainingClassLoader.getResource("ThisClassHopeFullyDoesNotExist" + Instant.now().toEpochMilli());
        assertThat(resource).isNull();
    }