static CapsVersionAndHash generateVerificationString(DiscoverInfoView discoverInfo) {
        return generateVerificationString(discoverInfo, null);
    }
@Test
    public void testReversedDataFormOrder() throws XmppStringprepException {
        final DiscoverInfoBuilder builderA = createSimpleSampleBuilder();
        builderA.addExtension(createSampleServerInfoDataForm()); // This works, as the underlying MultiMap maintains insertion-order.
        builderA.addExtension(createSampleSoftwareInfoDataForm());

        final DiscoverInfoBuilder builderB = createSimpleSampleBuilder();
        builderB.addExtension(createSampleSoftwareInfoDataForm());
        builderB.addExtension(createSampleServerInfoDataForm());

        CapsVersionAndHash versionAndHashA = EntityCapsManager.generateVerificationString(builderA.build(), StringUtils.SHA1);
        CapsVersionAndHash versionAndHashB = EntityCapsManager.generateVerificationString(builderB.build(), StringUtils.SHA1);

        assertEquals(versionAndHashA.version, versionAndHashB.version);
    }