//FIXME need testcase for decoding invalid encodings
public void testEncode() throws IOException {
for (int i = 0; i < taggedType.length; i++) {
DerOutputStream out = new DerOutputStream(
(ASN1Type) taggedType[i][2], taggedType[i][0]);
assertTrue("Test case: " + i, Arrays.equals(
(byte[]) taggedType[i][1], out.encoded));
}
}