@Test
public void testEqual() {

  TestIssue er1 = new TestIssue("a", "b", component1, "d", HighlightSeverity.ERROR);
  TestIssue er2 = new TestIssue("a", "b", component1, "d", HighlightSeverity.ERROR);
  Assert.assertEquals(er1, er2);
  Assert.assertEquals(er1.hashCode(), er2.hashCode());
  TestIssue er3 = new TestIssue("a", "b", component1, "d", HighlightSeverity.ERROR);
  TestIssue er4 = new TestIssue("a", "e", component2, "d", HighlightSeverity.ERROR);
  TestIssue er5 = new TestIssue("a", "e", null, "d", HighlightSeverity.ERROR);
  TestIssue er6 = new TestIssue("a", "e", null, "d", HighlightSeverity.ERROR);
  Assert.assertNotEquals(er3, er4);
  Assert.assertNotEquals(er4, er5);
  Assert.assertEquals(er5, er6);
  Assert.assertNotEquals(er3.hashCode(), er4.hashCode());
}