Rfc3161RecordIndexRule extends BaseRule { public VerificationErrorCode getErrorCode() { return VerificationErrorCode.INT_12; }  VerificationResultCode verifySignature(VerificationContext context); VerificationErrorCode getErrorCode();  }
@Test public void testSignatureContainsInvalidRfc3161Index() throws Exception { RuleResult result = rule.verify(build(TestUtil.loadSignature(RFC3161_SIGNATURE_INVALID_CHAIN_INDEX))); Assert.assertNotNull(result); Assert.assertEquals(result.getResultCode(), VerificationResultCode.FAIL); Assert.assertEquals(rule.getErrorCode(), VerificationErrorCode.INT_12); }