private static String getProperty(String name, Configuration configuration) {
    return Optional.of(configuration.getStringArray(relaxPropertyName(name)))

        .filter(values -> values.length > 0)

        .map(Arrays::stream)

        .map(stream -> stream.collect(Collectors.joining(",")))

        .orElse(null);
  }
@Test
  public void assertPropertiesFromBaseConfiguration()
      throws ConfigurationException {
    PropertiesConfiguration propertiesConfiguration = CommonsConfigurationUtils.fromPath(
        PropertiesConfiguration.class.getClassLoader().getResource("pinot-configuration-1.properties").getFile(),
        true, PropertyIOFactoryKind.ConfigFileIOFactory);

    PinotConfiguration config = new PinotConfiguration(propertiesConfiguration);

    Assert.assertEquals(config.getProperty("pinot.server.storage.factory.class.s3"),
        "org.apache.pinot.plugin.filesystem.S3PinotFS");
    Assert.assertEquals(config.getProperty("pinot.server.segment.fetcher.protocols"), "file,http,s3");
  }