@Test
public void testComputeHashcodeOrderMatters() {

    final IdentityTest identity = new IdentityTest();
    final AttributesMap map = AttributesMap.newBuilder().put("foo", "foo").put("bar", "bar").build();
    final Set<String> fooBar = Sets.newLinkedHashSet(Lists.newArrayList("foo", "bar"));
    final Set<String> barFoo = Sets.newLinkedHashSet(Lists.newArrayList("bar", "foo"));
    final int seed = 0;
    assertEquals(identity.computeHash(seed, fooBar, map), identity.computeHash(seed, fooBar, map));
    assertEquals(identity.computeHash(seed, barFoo, map), identity.computeHash(seed, barFoo, map));
    assertNotEquals(identity.computeHash(seed, fooBar, map), identity.computeHash(seed, barFoo, map));
    assertNotEquals(identity.computeHash(seed, barFoo, map), identity.computeHash(seed, fooBar, map));
}