@Test
public void testHashCode() {

  int hash1 = new TestIssue("a", "b", component1, "d", HighlightSeverity.ERROR).hashCode();
  int hash2 = new TestIssue("a", "b", component1, "d", HighlightSeverity.ERROR).hashCode();
  int hash3 = new TestIssue("a", "e", component2, "d", HighlightSeverity.ERROR).hashCode();
  int hash4 = new TestIssue("a", "e", null, "d", HighlightSeverity.ERROR).hashCode();
  int hash5 = new TestIssue("a", "e", null, "d", HighlightSeverity.ERROR).hashCode();
  Assert.assertEquals(hash1, hash2);
  Assert.assertEquals(hash4, hash5);
  Assert.assertNotEquals(hash1, hash3);
  Assert.assertNotEquals(hash1, hash3);
  Assert.assertNotEquals(hash1, hash4);
}