### Question:
MosaicId implements UnresolvedMosaicId { @Override public String getIdAsHex() { byte[] bytes = ByteUtils.bigIntToBytes(getId()); return ConvertUtils.toHex(bytes); } 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 shouldCompareMosaicIdsHexForEquality() { MosaicId mosaicId = new MosaicId("85BBEA6CC462B244"); MosaicId mosaicId2 = new MosaicId(new BigInteger("9636553580561478212")); assertEquals(mosaicId.getIdAsHex(), mosaicId2.getIdAsHex()); }