CalendarHashChainExistenceRule extends BaseRule { public VerificationErrorCode getErrorCode() { return VerificationErrorCode.GEN_02; }  VerificationResultCode verifySignature(VerificationContext context); VerificationErrorCode getErrorCode();  }
@Test public void testSignatureWithoutCalendarHashChainReturnsNaStatus_Ok() throws Exception { RuleResult result = rule.verify(build(TestUtil.loadSignature(SIGNATURE_ONLY_AGGREGATION_HASH_CHAINS))); Assert.assertNotNull(result); Assert.assertEquals(result.getResultCode(), VerificationResultCode.NA); Assert.assertEquals(result.getErrorCode(), VerificationErrorCode.GEN_02); }