public byte[] verifyMessage(ContentInfo signedMessage, Date date, String oid) {
        return encapsulatedData(verify(signedMessage, date), oid);
    }
@Test
    public void verifyValidCmsWithOidShouldFailIfOidDoesNotMatch() throws Exception {
        final ContentInfo signedMessage = ContentInfo.getInstance(fixture());

        thrown.expect(Asn1Exception.class);
        thrown.expectMessage("Unexpected content type 2.23.136.1.1.1");
        new CmsVerifier(new CertificateVerifier.None()).verifyMessage(signedMessage, "2.23.136.1.2.3");
    }