@Override
  public QueryRegistry createSandbox() {
    return new QueryRegistryImpl(this);
  }
@Test
  public void shouldOnlyAllowServerLevelConfigsForDedicatedRuntimesSandbox() {
    // Given:
    when(config.getOverrides()).thenReturn(ImmutableMap.of("commit.interval.ms", 9));
    if (sharedRuntimes) {
      final Exception e = assertThrows(IllegalArgumentException.class,
          () -> givenCreate(registry.createSandbox(), "q1", "source",
          Optional.of("sink1"), CREATE_AS));
      assertThat(e.getMessage(), containsString("commit.interval.ms"));
    }
    givenCreate(registry, "q1", "source", Optional.of("sink1"), CREATE_AS);
  }