### Question:
TextAnnotation extends BaseArtifacts { @Override public boolean equals(Object o) { if (o instanceof TextAnnotation) { TextAnnotation other = (TextAnnotation) o; return general.equals(other.general) && backgroundSet.equals(other.backgroundSet) && fontSet.equals(other.fontSet) && dimensionsSet.equals(other.dimensionsSet); } return false; } TextAnnotation();  TextAnnotation(final @MapsTo("general") BPMNGeneralSet general,
                          final @MapsTo("backgroundSet") BackgroundSet backgroundSet,
                          final @MapsTo("fontSet") FontSet fontSet,
                          final @MapsTo("dimensionsSet") RectangleDimensionsSet dimensionsSet); Set<String> getLabels(); BPMNGeneralSet getGeneral(); void setGeneral(final BPMNGeneralSet general); @Override int hashCode(); @Override boolean equals(Object o);  }### Answer:
@Test public void testEquals() { assertEquals(new TextAnnotation(), tested); assertNotEquals(new TextAnnotation(), new Object()); }