@Test
void collectFromRelationalSource() throws Exception {

  final RelationalInput input1 = RelationalInputStub.builder()
      .relationName("Test")
      .columnName("A").columnName("B")
      .build();
  given(generator.generateNewCopy()).willReturn(input1);
  final List<TableInfo> info = factory.createFromRelationalInputs(asList(generator));
  assertThat(info).hasSize(1);
  final TableInfo info1 = info.get(0);
  assertThat(info1.getColumnNames()).contains("A", "B");
  assertThat(info1.getColumnTypes()).containsOnly("String");
}