props.put("id1.property.value3", "foo3");
BasicCertificateExtension baseExt = new BasicCertificateExtension();
baseExt.init(1, "1.2.3", false, props);
DEREncodable value = baseExt.getValue(null, null, null, null, null);
assertTrue(value.getClass().toString(),value instanceof DERSequence);
DERSequence seq = (DERSequence)value;
assertEquals(3, seq.size());
Enumeration e = seq.getObjects();
int i = 1;
while(e.hasMoreElements()) {
DEREncodable v = (DEREncodable)e.nextElement();
assertTrue(v.getClass().toString(),v instanceof DERUTF8String);
String str = ((DERUTF8String)v).getString();
log.info(str);
assertEquals(str,"foo"+i++);
}
}