@Test
public void testEquals() {

	// Set should not be equals() to null
	assertFalse(set.equals(null));
	// Objects of different classes are not equals()
	assertFalse(set.equals("a String"));
	// Add elements
	set.add((short)4);
	set.add((short)5);
	// Test reflexivity
	assertTrue(set.equals(set));
	// Create a second set
	ShortSet other = new ShortSet(CAPACITY);
	other.add((short)5);
	other.add((short)7);
	other.add((short)6);
	// Test inequality
	assertTrue(other.equals(other));
	assertFalse(set.equals(other));
	// Make the sets equal (but in different orders)
	other.add((short)4);
	other.remove((short)6);
	other.remove((short)7);
	// Test symmetry
	assertTrue(other.equals(set));
	assertTrue(set.equals(other));
	// Sets from different-sized universes should not be equals()
	ShortSet other2 = new ShortSet(12);
	other2.add((short)4);
	other2.add((short)5);
	assertFalse(other2.equals(set));
	assertFalse(other2.equals(other));
	// Different sets of the same size should not be equals()
	ShortSet other3 = new ShortSet(CAPACITY);
	other3.add((short)4);
	other3.add((short)9);
	assertFalse(other3.equals(set));
	assertFalse(set.equals(other3));
}