@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 shouldFailIfVersionAlreadyExists() throws Exception {
    // Given:
    givenVersionsExist("12");

    command = PARSER.parse(DESCRIPTION, "-v", "12");

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

    // Then:
    assertThat(result, is(1));
  }