### Question:
PopulatedLocalContainerEntityManagerFactory extends LocalContainerEntityManagerFactoryBean { @Override protected void postProcessEntityManagerFactory(EntityManagerFactory emf, PersistenceUnitInfo pui) { if (populator != null) { emf.createEntityManager().close(); try { populator.initialize(this.getDataSource()); } catch (RuntimeException e) { logger.error("Database population has failed. It will be empty.", e); } } super.postProcessEntityManagerFactory(emf, pui); } PopulatedLocalContainerEntityManagerFactory(); void setPopulator(DataSourcePopulator populator);  }### Answer:
@Test public void postProcess_nullPopulator() { replay(info); replay(innerFactory); factory.postProcessEntityManagerFactory(innerFactory, info); verify(info); verify(innerFactory); }