// decode from byte array
for (int i = 0; i < validTestcase.length; i++) {
DerInputStream in = new DerInputStream((byte[]) validTestcase[i][2]);
assertTrue((validTestcase[i][0]).toString(), // message
Arrays.equals((byte[]) validTestcase[i][1], // expected
(byte[]) asn1.decode(in))); // returned
}
// decode from input stream
for (int i = 0; i < validTestcase.length; i++) {
DerInputStream in = new DerInputStream(new ByteArrayInputStream(