### Question:
RequeryRepositoryFactoryBean extends TransactionalRepositoryFactoryBeanSupport<T, S, ID> { @Override public void afterPropertiesSet() { log.debug("Before afterPropertiesSet ..."); try { super.afterPropertiesSet(); } catch (Exception e) { log.debug("Fail to setup...", e); } log.debug("After afterPropertiesSet"); } RequeryRepositoryFactoryBean(@Nonnull final Class<? extends T> repositoryInterface); @Autowired(required = false) void setOperations(@Nullable final RequeryOperations operations); @Override void afterPropertiesSet();  }### Answer:
@Test public void setsBasicInstanceCorrectly() { factoryBean.setBeanFactory(beanFactory); factoryBean.afterPropertiesSet(); assertThat(factoryBean.getObject()).isNotNull(); }