@Test
public void testGetElement() {

  LightWeightHashSet<TestObject> objSet = new LightWeightHashSet<TestObject>();
  TestObject objA = new TestObject("object A");
  TestObject equalToObjA = new TestObject("object A");
  TestObject objB = new TestObject("object B");
  objSet.add(objA);
  objSet.add(objB);
  
  assertSame(objA, objSet.getElement(objA));
  assertSame(objA, objSet.getElement(equalToObjA));
  assertSame(objB, objSet.getElement(objB));
  assertNull(objSet.getElement(new TestObject("not in set")));
}