public static String getMigrationsDir(
      final String configFilePath,
      final MigrationConfig config
  ) {
    final String migrationsDir = config.getString(MigrationConfig.KSQL_MIGRATIONS_DIR_OVERRIDE);
    if (migrationsDir != null && !migrationsDir.isEmpty()) {
      return migrationsDir;
    } else {
      return getMigrationsDirFromConfigFile(configFilePath);
    }
  }
@Test
  public void shouldDefaultMigrationsDirBasedOnConfigPath() {
    // Given:
    when(config.getString(MigrationConfig.KSQL_MIGRATIONS_DIR_OVERRIDE)).thenReturn("");

    // When / Then:
    assertThat(MigrationsDirectoryUtil.getMigrationsDir(migrationsConfigPath, config),
        is(Paths.get(testDir, MigrationsDirectoryUtil.MIGRATIONS_DIR).toString()));
  }