@Override
  protected int command() {
    if (!validateConfigFilePresent()) {
      return 1;
    }

    final MigrationConfig config;
    try {
      config = MigrationConfig.load(getConfigFile());
    } catch (KsqlException | MigrationException e) {
      LOGGER.error(e.getMessage());
      return 1;
    }

    return command(config, MigrationsUtil::getKsqlClient);
  }
@Test
  public void shouldCreateMigrationsStream() {
    // When:
    final int status = command.command(config, cfg -> client);

    // Then:
    assertThat(status, is(0));

    verify(client).executeStatement(EXPECTED_CS_STATEMENT);
  }