@JsonProperty("progress")
    public int progress() {
        if (indices.isEmpty()) {
            return 100; // avoid division by zero. No indices == migration is immediately done
        }

        final BigDecimal sum = indices.stream()
                .filter(i -> i.progress() != null)
                .map(RemoteReindexMigration::indexProgress)
                .reduce(BigDecimal.ZERO, BigDecimal::add);

        return sum.divide(BigDecimal.valueOf(indices.size()), 4, RoundingMode.HALF_UP).scaleByPowerOfTen(2).intValue();
    }
@Test
    void testProgressOneIndexNotStarted() {
        final RemoteReindexMigration migration = withIndices(
                index("one", RemoteReindexingMigrationAdapter.Status.NOT_STARTED)
        );
        Assertions.assertThat(migration.progress()).isEqualTo(0);
    }