@Test
    public void testExplicitDistributionImportNoTruncation() throws ParseException {
        BucketIdFactory idFactory = new BucketIdFactory();
        ProgressToken p = new ProgressToken();

        VisitorIterator iter = VisitorIterator.createFromDocumentSelection(
                "id.user == 1234 or id.user == 6789 or id.user == 8009", idFactory, 20, p);
        assertEquals(20, iter.getDistributionBitCount());
        assertEquals(20, p.getDistributionBitCount());
        assertEquals(20, iter.getBucketSource().getDistributionBitCount());

        iter.update(iter.getNext().getSuperbucket(), ProgressToken.FINISHED_BUCKET);

        // Make sure no truncation is done on import
        String serialized = p.toString();
        ProgressToken p2 = new ProgressToken(serialized);
        BucketIdFactory idFactory2 = new BucketIdFactory();
        VisitorIterator iter2 = VisitorIterator.createFromDocumentSelection(
                "id.user == 1234 or id.user == 6789 or id.user == 8009", idFactory2, 1, p2);
        assertEquals(20, iter2.getDistributionBitCount());
        assertEquals(20, p2.getDistributionBitCount());
        assertEquals(20, iter2.getBucketSource().getDistributionBitCount());
        assertEquals(2, p2.getPendingBucketCount());
        assertEquals(1, p2.getFinishedBucketCount());
        assertEquals(3, p2.getTotalBucketCount());
    }
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