@Test
    public void testImportProgressWithOutdatedDistribution() throws ParseException {
        String input = """
                VDS bucket progress file
                10
                503
                500
                1024
                28000000000000be:0
                28000000000002be:0
                28000000000001be:0
                """;

        BucketIdFactory idFactory = new BucketIdFactory();
        ProgressToken p = new ProgressToken(input);
        assertEquals(10, p.getDistributionBitCount());

        VisitorIterator iter = VisitorIterator.createFromDocumentSelection(
                "id.group != \"yahoo.com\"", idFactory, 1, p);

        iter.setDistributionBitCount(12);
        assertEquals(iter.getDistributionBitCount(), 12);
        assertEquals(p.getDistributionBitCount(), 12);
        assertEquals(iter.getBucketSource().getDistributionBitCount(), 12);

        assertEquals(p.getTotalBucketCount(), 1 << 12);
        assertEquals(p.getFinishedBucketCount(), 500 << 2);
        assertEquals(p.getPendingBucketCount(), 3 << 2);
        assertEquals(p.getActiveBucketCount(), 0);
        assertEquals(p.getBucketCursor(), 503 << 2);
        assertTrue(iter.hasNext());

        ProgressToken p2 = new ProgressToken(p.serialize());
        assertEquals(p2.getDistributionBitCount(), 12);
        assertEquals(p2.getTotalBucketCount(), 1 << 12);
        assertEquals(p2.getFinishedBucketCount(), 500 << 2);
        assertEquals(p2.getPendingBucketCount(), 3 << 2);
        assertEquals(p2.getActiveBucketCount(), 0);
        assertEquals(p2.getBucketCursor(), 503 << 2);
    }
Test increasing the distribution bits for a full bucket space range
source with no finished, active or pending buckets
@throws ParseException upon docsel parse failure (shouldn't happen)
documentapi/src/test/java/com/yahoo/documentapi/VisitorIteratorTestCase.java