ByteArrayOutputStream bOut = new ByteArrayOutputStream();
DerSequenceGenerator seqGen = new DerSequenceGenerator(bOut, 1, true);
seqGen.addObject(new Asn1Integer(BigInteger.valueOf(0)));
seqGen.addObject(new Asn1ObjectIdentifier("1.1"));
seqGen.close();
assertTrue("explicit tag writing test failed.", Arrays.equals(expTagSeqData, bOut.toByteArray()));
}