### Question:
UserIdentityOutboundEvent extends CommunityProfileOutboundEvent { @Override public String toString() { return "UserIdentityOutboundEvent{" + "userIdentity=" + userIdentity + ", eventType=" + getEventType() + ", eventVersionId=" + getEventVersionId() + '}'; } UserIdentityOutboundEvent();  UserIdentityOutboundEvent(UserIdentityOutboundEvent template); UserIdentity getUserIdentity(); void setUserIdentity(UserIdentity userIdentity); @Override String toString(); @Override boolean equals(Object objectToCompare); @Override int hashCode();  }### Answer:
@Test public void testToString() { assertTrue(getTestObject().toString().contains("UserIdentityOutboundEvent")); }