@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_error_with_map_when_non_existing_key_is_given() {
    // GIVEN
    Employee luke = new Employee(2L, new Name("Luke"), 22);
    Map<String, Employee> map = mapOf(entry("key1", YODA), entry("key2", luke));
    ByNameMultipleExtractor underTest = new ByNameMultipleExtractor("key1", "key2", "bad key");
    // WHEN
    Throwable thrown = catchThrowable(() -> underTest.apply(YODA));
    // THEN
    then(thrown).isInstanceOf(IntrospectionError.class);
  }