CompositeType compositeType = new CompositeType("typeName", "description",
itemNames, itemDescriptions, itemTypes);
assertTrue("Composite type should contain key name1", compositeType.containsKey("name1") == true);
assertTrue("Composite type should contain key name2", compositeType.containsKey("name2") == true);
assertTrue("Composite type should not contain key nameX", compositeType.containsKey("nameX") == false);
assertTrue("Composite type should not contain key null", compositeType.containsKey(null) == false);
assertTrue("Composite type should not contain key <empty>", compositeType.containsKey("") == false);
}
public void testGetDescriptionForItemName()
throws Exception