### Question:
RobeSessionFactoryFactory extends SessionFactoryFactory { @Override protected void configure(Configuration configuration, ServiceRegistry registry) { String prefix = configuration.getProperty("hibernate.prefix"); if (prefix != null) { configuration.setPhysicalNamingStrategy(new RobeHibernateNamingStrategy(prefix)); LOGGER.info("Table Prefix: ", prefix); } }    }### Answer:
@Test public void configure() { Configuration configuration = mock(Configuration.class); RobeSessionFactoryFactory factory = new RobeSessionFactoryFactory(); when(configuration.getProperty("hibernate.prefix")).thenReturn("P_"); factory.configure(configuration, null); when(configuration.getProperty("hibernate.prefix")).thenReturn(null); factory.configure(configuration, null); }