/**
* test a wrapped element.
*/
public void testWrappedElement() throws Exception {
ComplexTypeDefinition typeDef = new ComplexTypeDefinition((ClassDeclaration) getDeclaration("org.codehaus.enunciate.samples.schema.ElementBeanOne"));
PropertyDeclaration property = findProperty(typeDef, "wrappedElementsProperty1");
Element element = new Element(property, typeDef);
assertEquals(1, element.getChoices().size());
assertSame(element, element.getChoices().iterator().next());
assertEquals("wrappedElementsProperty1", element.getName());
assertNull(element.getNamespace());
assertNotNull(element.getRef());
assertEquals(property.getPropertyType(), element.getAccessorType());
assertEquals(KnownXmlType.DECIMAL.getQname(), element.getBaseType().getQname());
assertFalse(element.isNillable());
assertFalse(element.isRequired());
assertEquals(0, element.getMinOccurs());
assertEquals("unbounded", element.getMaxOccurs());