@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_extract_tuples_with_consistent_iteration_order() {
    // GIVEN
    ByNameMultipleExtractor underTest = new ByNameMultipleExtractor("id", "name.first", "age");
    // WHEN
    Tuple result = underTest.apply(YODA);
    // THEN
    then(result).isEqualTo(tuple(1L, "Yoda", 800));
  }