### Question:
RobeHibernateBundle extends HibernateBundle<T> { public static RobeHibernateBundle createInstance(String[] packages, String[] entities) { if (instance == null) instance = new RobeHibernateBundle(loadEntities(packages, entities), new RobeSessionFactoryFactory()); else throw new RuntimeException("HibernateBundle is already created."); return instance; } protected  RobeHibernateBundle(ImmutableList<Class<?>> entities, SessionFactoryFactory sessionFactoryFactory); static RobeHibernateBundle createInstance(String[] packages, String[] entities); static final RobeHibernateBundle getInstance(); HibernateConfiguration getDatabaseConfiguration(T configuration); @Override PooledDataSourceFactory getDataSourceFactory(T configuration); org.hibernate.cfg.Configuration getConfiguration();  }### Answer:
@Test @Order(order = 2) public void createInstance() { RobeHibernateBundle.createInstance(packagesToScan, entities); }
@Test(expected = RuntimeException.class) @Order(order = 4) public void createInstanceThrowsException() { RobeHibernateBundle.createInstance(packagesToScan, entities); }