@Test public void testHashCode() throws Exception { BasicTagList t1 = BasicTagList.of("foo", "bar"); BasicTagList t2 = BasicTagList.of("foo", "bar2"); BasicTagList t3 = BasicTagList.of("foo", "bar"); assertTrue(t1.hashCode() == t1.hashCode()); assertTrue(t1.hashCode() != t2.hashCode()); assertTrue(t1.hashCode() == t3.hashCode()); }