{
Asn1ObjectIdentifier o = new Asn1ObjectIdentifier(oid);
ByteArrayInputStream bIn = new ByteArrayInputStream(o.getEncoded());
Asn1InputStream aIn = new Asn1InputStream(bIn);
o = (Asn1ObjectIdentifier)aIn.readObject();
if (!o.toString().equals(oid))
{
fail("failed oid check for " + oid);
}