@Override
  public QueryRegistry createSandbox() {
    return new QueryRegistryImpl(this);
  }
@Test
  public void shouldCallSandboxOnCreate() {
    // Given:
    final QueryRegistry sandbox = registry.createSandbox();

    // When:
    final PersistentQueryMetadata q = givenCreate(sandbox, "q1", "source",
        Optional.of("sink1"), CREATE_AS);

    // Then:
    verify(sandboxListener).onCreate(serviceContext, metaStore, q);
    verify(listener1, times(0)).onCreate(any(), any(), any());
    verify(listener2, times(0)).onCreate(any(), any(), any());
  }