String[] itemNames = new String[] { "name1", "name2" };
String[] itemDescriptions = new String[] { "desc1", "desc2" };
OpenType[] itemTypes = new OpenType[] { SimpleType.STRING, SimpleType.INTEGER };
CompositeType compositeType = new CompositeType("typeName", "description",
itemNames, itemDescriptions, itemTypes);
Set keys = compositeType.keySet();
assertTrue("Should be 2 items", keys.size() == 2);
assertTrue("Should contain name1", keys.contains("name1"));
assertTrue("Should contain name2", keys.contains("name2"));
}