void handleStatement(final QueuedCommand queuedCommand) {
    throwIfNotConfigured();

    handleStatementWithTerminatedQueries(
        queuedCommand.getAndDeserializeCommand(commandDeserializer),
        queuedCommand.getAndDeserializeCommandId(),
        queuedCommand.getStatus(),
        Mode.EXECUTE,
        queuedCommand.getOffset(),
        false
    );
  }
@Test(expected = IllegalStateException.class)
  public void shouldThrowOnHandleStatementIfNotConfigured() {
    // Given:
    statementExecutor = new InteractiveStatementExecutor(
        serviceContext,
        mockEngine,
        mockParser,
        mockQueryIdGenerator,
        commandDeserializer
    );
    final Map<String, Object> withoutAppServer = ksqlConfig.originals();
    withoutAppServer.remove(StreamsConfig.APPLICATION_SERVER_CONFIG);
    when(mockEngine.getKsqlConfig()).thenReturn(new KsqlConfig(withoutAppServer));

    // When:
    statementExecutor.handleStatement(queuedCommand);
  }