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);
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);
}