### Question:
MosaicNonce { public static MosaicNonce createRandom() { return new MosaicNonce(RandomUtils.generateRandomInt()); } MosaicNonce(int nonce); static MosaicNonce createRandom(); static MosaicNonce createFromBigInteger(BigInteger number); static MosaicNonce createFromInteger(Integer number); int getNonceAsInt(); long getNonceAsLong(); @Override boolean equals(Object o); @Override int hashCode();  }### Answer:
@Test void createRandomNonceTwiceNotTheSame() { MosaicNonce nonce1 = MosaicNonce.createRandom(); MosaicNonce nonce2 = MosaicNonce.createRandom(); assertNotEquals(nonce1, nonce2); assertEquals(nonce2, nonce2); }