DefaultDocumentTemplateAsyncProducer implements DocumentTemplateAsyncProducer { @Override public DocumentTemplateAsync get(DocumentCollectionManagerAsync collectionManager) { Objects.requireNonNull(collectionManager, "collectionManager is required"); return new ProducerAbstractDocumentTemplateAsync(converter, collectionManager, classMappings, converters); }  @Override DocumentTemplateAsync get(DocumentCollectionManagerAsync collectionManager);  }
@Test public void shouldReturnErrorWhenColumnFamilyManagerNull() { Assertions.assertThrows(NullPointerException.class, () -> producer.get(null)); }
@Test public void shouldReturn() { DocumentCollectionManagerAsync manager = Mockito.mock(DocumentCollectionManagerAsync.class); DocumentTemplateAsync documentRepository = producer.get(manager); assertNotNull(documentRepository); }