@Override
    public InputStream getResourceAsStream(String name) {
        InputStream stream = null;
        for (ClassLoader classLoader : classLoaders) {
            stream = classLoader.getResourceAsStream(name);

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

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

        return stream;
    }
@Test
    public void getResourceAsStreamReturnsNullIfResourceDoesNotExist() throws Exception {
        final ChainingClassLoader chainingClassLoader = new ChainingClassLoader(getClass().getClassLoader());
        final InputStream stream = chainingClassLoader.getResourceAsStream("ThisClassHopeFullyDoesNotExist" + Instant.now().toEpochMilli());
        assertThat(stream).isNull();
    }