public void testId() {
String s1 = "s1";
String s2 = "s2";
ObjectIdTable oit = new ObjectIdTable();
int id1 = oit.id(s1);
assertTrue("Same object, same id", id1 == oit.id(s1));
int id2 = oit.id(s2);
assertTrue("Different object, different id", id1 != id2);
assertTrue("Same object, same id, again", id2 == oit.id(s2));
}