public void testGenericComposite() throws Exception
{
TestGeneric test = new TestGeneric("Hello");
TestGenericComposite composite = new TestGenericComposite();
composite.setGeneric(test);
GenericMetaType generic = new GenericMetaType(TestGeneric.class.getName(), TestGeneric.class.getName());
GenericValue genericValue = new GenericValueSupport(generic, test);
MutableCompositeMetaType compositeType = new MutableCompositeMetaType(TestGenericComposite.class.getName(), TestGenericComposite.class.getName());
compositeType.addItem("generic", "generic", generic);
compositeType.freeze();
CompositeValueSupport expected = new CompositeValueSupport(compositeType);