@Override
    public OpensearchDistribution get() {
        return distribution.get();
    }
@Test
    void testFailedDetectionInDirectory() {
        Assertions.assertThatThrownBy(() ->
                        provider(emptyTempDir.resolve("nonexistent"), OpensearchArchitecture.x64).get())
                .hasMessageStartingWith("Failed to list content of provided directory");


        Assertions.assertThatThrownBy(() -> provider(emptyTempDir, OpensearchArchitecture.x64).get())
                .hasMessageStartingWith("Could not detect any opensearch distribution");
    }