### Question:
ImageEvent extends DocumentBuilderEvent { @Override public boolean equals(Object obj) { if (obj == null) { return false; } if (obj == this) { return true; } if (!(obj instanceof ImageEvent)) { return false; } return Objects.equals(url, ((ImageEvent) obj).url); } ImageEvent(Attributes attributes, String url); @Override void invoke(DocumentBuilder builder); @Override int hashCode(); @Override boolean equals(Object obj); @Override String toString();  }### Answer:
@Test public void equals() { assertEquality(new ImageEvent(new Attributes(), "http: new ImageEvent(new Attributes(), "http: assertInequality(new ImageEvent(new Attributes(), "http: new ImageEvent(new Attributes(), "http: }