@Test
    public final void dynamicThrottlePolicySignature() {
        final DynamicThrottlePolicy base = new DynamicThrottlePolicy();
        final DynamicThrottlePolicy other = new DynamicThrottlePolicy();
        base.setEfficiencyThreshold(5)
            .setMaxPendingCount(3)
            .setMaxWindowSize(1e9)
            .setMinWindowSize(1e5)
            .setWeight(1.0)
            .setWindowSizeBackOff(.6)
            .setWindowSizeIncrement(500)
            .setMaxThroughput(1e6)
            .setMaxPendingSize(3 * 100);
        other.setEfficiencyThreshold(5 + 1)
             .setMaxPendingCount(3 + 1)
             .setMaxThroughput(1e6 + 1)
             .setMaxWindowSize(1e9 + 1)
             .setMinWindowSize(1e5 + 1)
             .setWeight(1.0 + 1)
             .setWindowSizeBackOff(.6 + 1)
             .setWindowSizeIncrement(500 + 1)
             .setMaxPendingSize(3 * 100 + 1);
        final DynamicThrottlePolicySignature sigBase = new DynamicThrottlePolicySignature(base);
        final DynamicThrottlePolicySignature sigOther = new DynamicThrottlePolicySignature(other);
        assertFalse("The policies are different, but signatures are equal.", sigBase.equals(sigOther));
        assertTrue("Sigs created from same policy evaluated as different.",
                sigBase.equals(new DynamicThrottlePolicySignature(base)));
        other.setEfficiencyThreshold(5)
             .setMaxPendingCount(3)
             .setMaxThroughput(1e6)
             .setMaxWindowSize(1e9)
             .setMinWindowSize(1e5)
             .setWeight(1.0)
             .setWindowSizeBackOff(.6)
             .setWindowSizeIncrement(500)
             .setMaxPendingSize(3 * 100);
        assertTrue("Sigs created from different policies with same settings evaluated as different.",
                sigBase.equals(new DynamicThrottlePolicySignature(other)));
    }
Check the completeness of the mbus session key classes.

@author Steinar Knutsen
container-messagebus/src/test/java/com/yahoo/container/jdisc/messagebus/MbusSessionKeyTestCase.java