private TemporaryClassLoaderContext(Thread thread, ClassLoader originalContextClassLoader) {
        this.thread = thread;
        this.originalContextClassLoader = originalContextClassLoader;
    }
@Test
    void testTemporaryClassLoaderContext() {
        final ClassLoader contextClassLoader = Thread.currentThread().getContextClassLoader();

        final ChildFirstClassLoader temporaryClassLoader =
                new ChildFirstClassLoader(
                        new URL[0], contextClassLoader, new String[0], NOOP_EXCEPTION_HANDLER);

        try (TemporaryClassLoaderContext ignored =
                TemporaryClassLoaderContext.of(temporaryClassLoader)) {
            assertThat(Thread.currentThread().getContextClassLoader())
                    .isEqualTo(temporaryClassLoader);
        }

        assertThat(Thread.currentThread().getContextClassLoader()).isEqualTo(contextClassLoader);
    }