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(expectedExceptions = IllegalArgumentException.class)
  public void assertUnsupportedTypeBehavior() {
    Map<String, Object> properties = new HashMap<>();
    properties.put("property.invalid-type", "true");

    PinotConfiguration pinotConfiguration = new PinotConfiguration(properties);

    pinotConfiguration.getProperty("property.invalid-type", Math.class);
  }