@Override
  public KsMaterializedQueryResult<WindowedRow> get(
      final GenericKey key,
      final int partition,
      final Range<Instant> windowStart,
      final Range<Instant> windowEnd,
      final Optional<Position> position
  ) {
    try {
      final ReadOnlySessionStore<GenericKey, GenericRow> store = stateStore
          .store(QueryableStoreTypes.sessionStore(), partition);

      return KsMaterializedQueryResult.rowIterator(
          findSession(store, key, windowStart, windowEnd).iterator());
    } catch (final Exception e) {
      throw new MaterializationException("Failed to get value from materialized table", e);
    }
  }
@SuppressWarnings("unchecked")
  @Test
  public void shouldGetStoreWithCorrectParams() {
    // When:
    table.get(A_KEY, PARTITION, WINDOW_START_BOUNDS, WINDOW_END_BOUNDS);

    // Then:
    verify(stateStore).store(any(SessionStoreType.class), anyInt());
  }