@Test
public void testInMemoryKey() {

  HashSet<InMemoryKey> set = new HashSet<InMemoryKey>();
  InMemoryKey one = new InMemoryKey(null, "one", "one");
  set.add(one);
  InMemoryKey uno = new InMemoryKey(null, "one", "one");
  set.add(uno);
  assertEquals(one, uno);
  assertEquals(1, set.size());
  InMemoryKey two = new InMemoryKey(null, "one", "two");
  set.add(two);
  assertNotEquals(one, two);
  assertEquals(2, set.size());
}