SolrDocumentConfiguration implements DocumentConfiguration { public SolrDocumentCollectionManagerFactory get(HttpSolrClient solrClient) throws NullPointerException { requireNonNull(solrClient, "solrClient is required"); return new SolrDocumentCollectionManagerFactory(solrClient); }  SolrDocumentCollectionManagerFactory get(HttpSolrClient solrClient); @Override SolrDocumentCollectionManagerFactory get(); @Override SolrDocumentCollectionManagerFactory get(Settings settings);  }
@Test public void shouldCreateDocumentCollectionManagerFactoryByFile() { DocumentConfiguration configuration = new SolrDocumentConfiguration(); DocumentCollectionManagerFactory managerFactory = configuration.get(); assertNotNull(managerFactory); }
@Test public void shouldReturnErrorWhendSettingsIsNull() { DocumentConfiguration configuration = new SolrDocumentConfiguration(); assertThrows(NullPointerException.class, () -> configuration.get(null)); }