@Override
  public Object apply(Object input) {
    return PropertyOrFieldSupport.EXTRACTION.getValueOf(propertyOrFieldName, input);
  }
@Test
  void should_ignore_property_with_bare_name_method_when_disabled() {
    try {
      // GIVEN
      Introspection.setExtractBareNamePropertyMethods(false);
      BareOptionalIntHolder holder = new BareOptionalIntHolder(42);
      ByNameSingleExtractor underTest = new ByNameSingleExtractor("value");
      // WHEN
      Object result = underTest.apply(holder);
      // THEN
      then(result).isEqualTo(42);
    } finally {
      Introspection.setExtractBareNamePropertyMethods(true);
    }
  }