@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(getMigrationsDir(getConfigFile(), config));
  }
@Test
  public void shouldCreateWithNoExplicitVersionAndEmptyMigrationsDir() {
    // Given:
    command = PARSER.parse(DESCRIPTION);

    // When:
    final int result = command.command(migrationsDir);

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

    final File expectedFile = new File(Paths.get(migrationsDir, "V000001__" + EXPECTED_FILE_SUFFIX).toString());
    assertThat(expectedFile.exists(), is(true));
    assertThat(expectedFile.isDirectory(), is(false));
  }