new byte[] { 0x06, 0x03, (byte) 0x81, 0x34, 0x03 } } };
public void test_MappingToIntArray() throws IOException {
// oid decoder/encoder for testing
ASN1Oid asn1 = ASN1Oid.getInstance();
// testing decoding
for (int i = 0; i < oid.length; i++) {
int[] decoded = (int[]) asn1.decode(new DerInputStream(
(byte[]) oid[i][2]));
assertTrue("Failed to decode oid: " + oid[i][0], // error message
Arrays.equals((int[]) oid[i][1], // expected array
decoded));