DefaultColumnTemplateAsyncProducer implements ColumnTemplateAsyncProducer { @Override public ColumnTemplateAsync get(ColumnFamilyManagerAsync columnFamilyManager) { Objects.requireNonNull(columnFamilyManager, "columnFamilyManager is required"); return new ProducerColumnTemplateAsync(converter, columnFamilyManager, classMappings, converters); }  @Override ColumnTemplateAsync get(ColumnFamilyManagerAsync columnFamilyManager);  }
@Test public void shouldReturnErrorWhenColumnFamilyManagerNull() { Assertions.assertThrows(NullPointerException.class, () -> producer.get(null)); }
@Test public void shouldReturn() { ColumnFamilyManagerAsync manager = Mockito.mock(ColumnFamilyManagerAsync.class); ColumnTemplateAsync columnRepository = producer.get(manager); assertNotNull(columnRepository); }