byte[] data)
throws Exception
{
Asn1InputStream aIn = new Asn1InputStream(data);
Asn1Sequence seq = (Asn1Sequence)aIn.readObject();
Object o = null;
int count = 0;
assertNotNull("null sequence returned", seq);
while ((o = seq.readObject()) != null)
{
switch (count)
{
case 0:
assertTrue(o instanceof Asn1Integer);
break;
case 1:
assertTrue(o instanceof Asn1ObjectIdentifier);
break;
case 2:
assertTrue(o instanceof Asn1Sequence);
Asn1Sequence s = (Asn1Sequence)o;
s.readObject();
break;
}
count++;
}