### Question:
MosaicId implements UnresolvedMosaicId { public BigInteger getId() { return 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 createAMosaicIdFromIdViaConstructor() { MosaicId mosaicId = new MosaicId(new BigInteger("-8810190493148073404")); assertEquals(mosaicId.getId(), new BigInteger("-8810190493148073404")); }
@Test void createAMosaicIdFromHexViaConstructor() { MosaicId mosaicId = new MosaicId("85BBEA6CC462B244"); assertEquals(mosaicId.getId(), new BigInteger("9636553580561478212")); }
@Test void shouldCompareMosaicIdsArraysForEquality() { MosaicId mosaicId = new MosaicId("85BBEA6CC462B244"); BigInteger bigInt1 = new BigInteger("9636553580561478212"); MosaicId mosaicId1 = new MosaicId(bigInt1); assertEquals(mosaicId.getId(), mosaicId1.getId()); }
@Test void shouldCompareMosaicIdsForNotEquality() { BigInteger bigInt1 = new BigInteger("9636553580561478212"); MosaicId mosaicId1 = new MosaicId(bigInt1); BigInteger bigInt2 = new BigInteger("-8810190493148073404"); MosaicId mosaicId2 = new MosaicId(bigInt2); assertNotEquals(bigInt1, bigInt2); assertNotEquals(mosaicId1.getId(), mosaicId2.getId()); }