### Question:
SimpleObjectId extends BaseObjectId { @Override public boolean equals(Object object) { if (this == object) { return true; } if (!(object instanceof SimpleObjectId)) { return false; } return id.equals(((SimpleObjectId)object).get()); } SimpleObjectId(Object id); @Override Object get(String attributeName); @Override Object get(); @Override int size(); @Override String toString(); @Override boolean equals(Object object); @Override int hashCode();  }### Answer:
@Test public void testEquals() { SimpleObjectId objectId1 = new SimpleObjectId(1); assertEquals(objectId1, objectId1); SimpleObjectId objectId2 = new SimpleObjectId(1); assertEquals(objectId2, objectId1); }