### Question:
MosaicId implements UnresolvedMosaicId { @Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } MosaicId mosaicId = (MosaicId) o; return Objects.equals(id, mosaicId.id); } MosaicId(String hex);  MosaicId(BigInteger id);  MosaicId(MosaicNonce mosaicNonce, Address owner);  MosaicId(MosaicNonce mosaicNonce, PublicAccount owner); static MosaicId createFromNonce(MosaicNonce mosaicNonce, Address owner); static MosaicId createFromNonce(MosaicNonce mosaicNonce, PublicAccount owner); BigInteger getId(); long getIdAsLong(); @Override boolean equals(Object o); @Override int hashCode(); @Override String getIdAsHex();  }### Answer:
@Test void shouldCompareMosaicIdsForEquality() { MosaicId mosaicId = new MosaicId(new BigInteger("-8810190493148073404")); MosaicId mosaicId2 = new MosaicId(new BigInteger("-8810190493148073404")); assertTrue(mosaicId.equals(mosaicId2)); }