title: java.lang.NoSuchFieldError: IMPORT_BEAN_NAME_GENERATOR
body: <p>I have a unit test with the following annotations:</p>
  
  <pre><code>@ExtendWith(SpringExtension.class)
  @ContextConfiguration(classes = TestConfiguration.class)
  @TestPropertySource("classpath:application-test.properties")
  </code></pre>
  
  <p>I use Spring Boot 2.2.0 and Spring 5.2.0 and Junit Jupiter. The test tests a dao class using an in-memory H2 database. This used to work before I switched to spring boot 2.2.0. 
  I get an error</p>
  
  <pre><code>java.lang.NoSuchFieldError: IMPORT_BEAN_NAME_GENERATOR
  </code></pre>
  
  <p>When I debug I see</p>
  
  <pre><code>@Override
  @Deprecated
  public void registerBeanDefinitions(AnnotationMetadata metadata, BeanDefinitionRegistry registry) {
      registerBeanDefinitions(metadata, registry, ConfigurationClassPostProcessor.IMPORT_BEAN_NAME_GENERATOR);
  }
  </code></pre>
  
  <p>in class RepositoryBeanDefinitionRegistrarSupport. I get the exception on <code>registerBeanDefinitions</code>. The method is Deprecated, the documentation says it is replaced by a method with three arguments <a href="https://docs.spring.io/spring-data/commons/docs/current/api/org/springframework/data/repository/config/RepositoryBeanDefinitionRegistrarSupport.html" rel="noreferrer">here</a>. When I set a breakpoint in <code>ConfigurationClassPostProcessor</code> where <code>IMPORT_BEAN_NAME_GENERATOR</code> is defined, the code doesn't get there. Apparently, something is using the old method but I can't find out what is. When I go back to spring boot 2.1.8, I don't get this error.</p>