public Offloaders getOrLoadOffloaders(String offloadersPath, String narExtractionDirectory) {
        return loadedOffloaders.computeIfAbsent(offloadersPath,
                (directory) -> {
                    try {
                        return OffloaderUtils.searchForOffloaders(directory, narExtractionDirectory);
                    } catch (IOException e) {
                        throw new RuntimeException(e);
                    }
                });
    }
@Test
    public void testLoadsOnlyOnce() throws Exception {
        Offloaders expectedOffloaders = new Offloaders();

        try (MockedStatic<OffloaderUtils> offloaderUtils = Mockito.mockStatic(OffloaderUtils.class)) {
            offloaderUtils.when(() -> OffloaderUtils.searchForOffloaders(eq("./offloaders"), eq("/tmp")))
                    .thenReturn(expectedOffloaders);

            OffloadersCache cache = new OffloadersCache();

            // Call a first time to load the offloader
            Offloaders offloaders1 = cache.getOrLoadOffloaders("./offloaders", "/tmp");

            assertSame(offloaders1, expectedOffloaders, "The offloaders should be the mocked one.");

            // Call a second time to get the stored offlaoder
            Offloaders offloaders2 = cache.getOrLoadOffloaders("./offloaders", "/tmp");

            assertSame(offloaders2, expectedOffloaders, "The offloaders should be the mocked one.");
        }
    }