@Override
  public Tuple apply(Object input) {
    checkArgument(fieldsOrProperties != null, "The names of the fields/properties to read should not be null");
    checkArgument(fieldsOrProperties.length > 0, "The names of the fields/properties to read should not be empty");
    checkArgument(input != null, "The object to extract fields/properties from should not be null");

    List<Function<Object, Object>> extractors = buildExtractors();
    List<Object> values = extractValues(input, extractors);

    return new Tuple(values.toArray());
  }
@Test
  void should_throw_exception_when_given_name_is_empty() {
    // GIVEN
    ByNameMultipleExtractor underTest = new ByNameMultipleExtractor(); // empty vararg array
    // WHEN
    Throwable thrown = catchThrowable(() -> underTest.apply(YODA));
    // THEN
    then(thrown).isInstanceOf(IllegalArgumentException.class)
                .hasMessage("The names of the fields/properties to read should not be empty");
  }