ElasticsearchDocumentCollectionManagerFactory implements DocumentCollectionManagerFactory { @Override public ElasticsearchDocumentCollectionManager get(String database) throws UnsupportedOperationException, NullPointerException { Objects.requireNonNull(database, "database is required"); initDatabase(database); return new DefaultElasticsearchDocumentCollectionManager(client, database); } ElasticsearchDocumentCollectionManagerFactory(RestHighLevelClient client); @Override ElasticsearchDocumentCollectionManager get(String database); @Override void close();  }
@Test public void shouldCreateEntityManager() { ElasticsearchDocumentCollectionManagerFactory factory = ElasticsearchDocumentCollectionManagerFactorySupplier.INSTANCE.get(); assertNotNull(factory.get("database")); }