@Override
  public MaterializedWindowedTable windowed() {
    return new KsqlMaterializedWindowedTable(inner.windowed());
  }
@Test
  public void shouldReturnSelectTransformedFromWindowed() {
    // Given:
    final MaterializedWindowedTable table = materialization.windowed();
    givenNoopFilter();
    when(project.apply(any(), any(), any())).thenReturn(Optional.of(transformed));

    // When:
    final Iterator<WindowedRow> result =
        table.get(aKey, partition, windowStartBounds, windowEndBounds);

    // Then:
    assertThat(result, is(not(Optional.empty())));
    assertThat(result.hasNext(), is(true));
    final WindowedRow row = result.next();
    assertThat(row.key(), is(aKey));
    assertThat(row.window(), is(Optional.of(aWindow)));
    assertThat(row.value(), is(transformed));
  }