public void testRefreshNonce() { Interest interest = new Interest(referenceInterest); Blob oldNonce = interest.getNonce(); Assert.AssertEquals(4, oldNonce.size()); interest.refreshNonce(); Assert.AssertEquals("The refreshed nonce should be the same size", oldNonce.size(), interest.getNonce().size()); Assert.AssertFalse("The refreshed nonce should be different", interest .getNonce().equals(oldNonce)); }