@Override
    public String[] getVersion() {
        return new String[]{"Version: " + BuildInfoProvider.getBuildInfo().getVersion()};
    }
@Test
    public void test_gerVersion() {
        try {
            // given
            String[] expected = {"Version: " + GeneratedBuildProperties.VERSION};
            // when
            String[] version = new VersionProvider().getVersion();
            // then
            assertArrayEquals(expected, version);
        } catch (ExceptionInInitializerError error) {
            // Catch block to investigate test failure
            // https://github.com/hazelcast/hazelcast/issues/26088

            // Investigate how log4j is configured
            // https://logging.apache.org/log4j/2.x/manual/configuration.html#automatic-configuration

            System.out.println("System.getProperties():");
            System.getProperties()
                    .entrySet()
                    .forEach(System.out::println);

            System.out.println();

            String log4j2ConfigurationFileString = System.getProperty("log4j2.configurationFile");

            if (log4j2ConfigurationFileString != null) {
                Path log4j2ConfigurationFile = Paths.get("log4j2ConfigurationFileString");

                if (Files.exists(log4j2ConfigurationFile)) {
                    try {
                        System.out.println("\"log4j2.configurationFile\" contents:");
                        System.out.println(Files.readString(log4j2ConfigurationFile, StandardCharsets.UTF_8));
                    } catch (IOException ioException) {
                        throw new UncheckedIOException(ioException);
                    }
                }
            }

            System.out.println();

            System.out.println("Classpath Contents:");
            ConfigurationBuilder configuration = new ConfigurationBuilder()
                    .setUrls(ClasspathHelper.forJavaClassPath())
                    .setScanners(Resources);
            new Reflections(configuration).getResources(".*")
                    .forEach(System.out::println);

            System.out.println();
        }
    }