### Question:
RobeHibernateBundle extends HibernateBundle<T> { protected static final ImmutableList<Class<?>> loadEntities(String[] packages, String[] entities) { Set<Class<?>> classes = new HashSet<>(); if (packages != null) { for (String packageName : packages) { LOGGER.info("Loading Package: " + packageName); Reflections reflections = new Reflections(packageName); classes.addAll(reflections.getTypesAnnotatedWith(Entity.class)); } } if (entities != null) { for (String entity : entities) { try { LOGGER.info("Loading Entity: " + entity); Class entityClass = Class.forName(entity); if (entityClass.isAnnotationPresent(Entity.class)) { classes.add(entityClass); } else { LOGGER.warn("Class is not annotated with Entity: " + entity); } } catch (ClassNotFoundException e) { LOGGER.warn("Can't load class: " + entity, e); } } } return ImmutableList.<Class<?>>builder().add(BaseEntity.class).addAll(classes).build(); } 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 = 5) public void loadEntities() { ImmutableList<Class<?>> loadedEntities = RobeHibernateBundle.loadEntities(packagesToScan, entities); Assert.assertEquals(4, loadedEntities.size()); }