public LogicalSchema resolve(final ExecutionStep<?> step, final LogicalSchema schema) {
    return Optional.ofNullable(HANDLERS.get(step.getClass()))
        .map(h -> h.handle(this, schema, step))
        .orElseThrow(() -> new IllegalStateException("Unhandled step class: " + step.getClass()));
  }
@Test
  public void shouldResolveSchemaForTableSource() {
    // Given:
    final TableSource step = new TableSource(
        PROPERTIES,
        "foo",
        formats,
        Optional.empty(),
        SCHEMA,
        SystemColumns.CURRENT_PSEUDOCOLUMN_VERSION_NUMBER,
        formats
    );

    // When:
    final LogicalSchema result = resolver.resolve(step, SCHEMA);

    // Then:
    assertThat(result, is(SCHEMA.withPseudoAndKeyColsInValue(false)));
  }