### Question:
ActorId extends Object implements Comparable<ActorId> { @Override public boolean equals(Object obj) { if (this == obj) { return true; } if (obj == null) { return false; } if (getClass() != obj.getClass()) { return false; } return hasEqualContent(this, (ActorId) obj); } ActorId(String id); @Override String toString(); @Override int compareTo(ActorId other); @Override int hashCode(); @Override boolean equals(Object obj); static ActorId createRandom();  }### Answer:
@Test public void verifyEqualsByObject() { List<Wrapper> values = createEqualsTestValues(); for (Wrapper w : values) { Assert.assertEquals(w.expectedResult, w.item1.equals(w.item2)); } }
@Test public void verifyEqualsByActorId() { List<Wrapper> values = createEqualsTestValues(); for (Wrapper w : values) { ActorId a1 = (ActorId) w.item1; Object a2 = w.item2; Assert.assertEquals(w.expectedResult, a1.equals(a2)); } }