### Question:
RequeryRepositoryFactory extends RepositoryFactorySupport { @Override public void setBeanClassLoader(@Nullable final ClassLoader classLoader) { super.setBeanClassLoader(classLoader); this.crudMethodMetadataPostProcessor.setBeanClassLoader(classLoader); } RequeryRepositoryFactory(@Nonnull final RequeryOperations operations); @Override void setBeanClassLoader(@Nullable final ClassLoader classLoader); @Override @SuppressWarnings("unchecked") @Nonnull RequeryEntityInformation<T, ID> getEntityInformation(@Nonnull final Class<T> domainClass);  }### Answer:
@Test public void crudMethodMetadataPostProcessorUsesBeanClassLoader() { ClassLoader classLoader = new OverridingClassLoader(ClassUtils.getDefaultClassLoader()); factory.setBeanClassLoader(classLoader); Object processor = ReflectionTestUtils.getField(factory, "crudMethodMetadataPostProcessor"); Assert.notNull(processor, "processor must not be null"); assertThat(ReflectionTestUtils.getField(processor, "classLoader")).isEqualTo(classLoader); }