Assert.assertTrue(objs[0] instanceof Integer);
int index = ((Integer) objs[0]).intValue();
checkEncode(objs[1], type.type[index]);
} else if (value instanceof ChosenValue) {
ChosenValue chosen = (ChosenValue) value;
checkEncode(chosen.getValue(), type.type[chosen.getIndex()]);
} else if (value instanceof ASN1Encodable) {
Object[] objs = new Object[1];
((ASN1Encodable) value).encodeValues(objs);
checkEncode(objs[0], type);
} else {