    @Test
    public void testFairAllocation() {

        KeyAllocationStrategy s0 = getStrategy(KeyAllocationType.fair, 2);
        assertThat(s0.getKey(0), equalTo(s0.getKey(0))); // consistency
        assertThat(s0.getKey(0), equalTo(s0.getKey(2))); // modulo around uniqueKeys
        assertThat(s0.getKey(0), not(equalTo(s0.getKey(1))));

        KeyAllocationStrategy s1 = getStrategy(KeyAllocationType.fair, 2);
        assertThat(s0.getKey(0), equalTo(s1.getKey(0)));
        assertThat(s0.getKey(1), equalTo(s1.getKey(1)));
    }