/**
* Tests a byte[] accessor
*/
public void testByteArrayProperty() throws Exception {
ComplexTypeDefinition typeDef = new ComplexTypeDefinition((ClassDeclaration) getDeclaration("org.codehaus.enunciate.samples.schema.ElementBeanOne"));
PropertyDeclaration property = findProperty(typeDef, "property6");
Element element = new Element(property, typeDef);
assertEquals(1, element.getChoices().size());
assertSame(element, element.getChoices().iterator().next());
assertEquals("property6", element.getName());
assertNull("The namespace should be null because the elementFormDefault is unset.", element.getNamespace());
assertNull(element.getRef());
assertEquals(property.getPropertyType(), element.getAccessorType());
assertEquals(KnownXmlType.BASE64_BINARY, element.getBaseType());
assertFalse(element.isNillable());
assertFalse(element.isRequired());
assertTrue(element.isBinaryData());
assertEquals(0, element.getMinOccurs());
assertEquals("1", element.getMaxOccurs());
assertNull(element.getDefaultValue());
assertFalse(element.isWrapped());
//now let's pretend its a value...
Value value = new Value(property, typeDef);
assertEquals(null, value.getName());
assertEquals(property.getPropertyType(), value.getAccessorType());
assertEquals(KnownXmlType.BASE64_BINARY, value.getBaseType());
assertTrue(value.isBinaryData());
assertFalse(((DecoratedTypeMirror) value.getAccessorType()).isPrimitive());
}