ArrayList charset = css.getCharsets();
assertNotNull("No charset information", charset);
// Construct a UTF8 charset so we can get the index in the ArrayList
Charset UTF8 = new Charset();
UTF8.setName("utf-8");
UTF8.setMIBenum(106);
UTF8.setPreload(true);
UTF8.setComplete(true);
int utf8Index = charset.indexOf(UTF8);
Charset cs = (Charset) charset.get(utf8Index);
assertNotNull("No utf8 charset in map", cs);
assertEquals("UTF-8 charset not correctly configured", cs.getName(), "utf-8");
assertEquals("MIBenum not correct", cs.getMIBenum(), 106);
assertTrue("Complete attribute is false", cs.isComplete());
assertTrue("Preload attribute is false", cs.isPreload());
ArrayList aliases = cs.getAlias();
assertNotNull("No aliases found", aliases);
Alias UTF8Alias = new Alias();
UTF8Alias.setName("UTF8");