/** Tests property getters. */ public void testGetParams() throws Asn1FormatException, IOException { InputStream in = new ByteArrayInputStream(CONTENT_INFO); ContentInfo contentInfo = ContentInfo.getInstance(in); assertEquals(ContentInfo.CONTENT_TYPE, contentInfo.getContentType()); ASN1Object signedData = new ASN1InputStream(contentInfo.getContent().getDerEncoded()).readObject(); assertTrue( Arrays.equals( signedData.getEncoded(ASN1Encoding.DER), contentInfo.getContent().getDerEncoded())); }